/* ===== Ad Detail Page CSS ===== */

/* Background & Container - Matching Home Page Hero Style */
.ad-detail-bg {
    min-height: calc(100vh - 200px);
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    padding: 40px 20px;
    position: relative;
}

.ad-detail-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
    pointer-events: none;
}

.ad-detail-container {
    max-width: 700px;
    margin: 0 auto;
    background: linear-gradient(145deg, #1e293b 0%, #0f172a 100%);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 1;
}

/* Type Badge */
.ad-detail-type {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 25px;
}

.ad-detail-type.takim {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.ad-detail-type.lig {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
}

.ad-detail-type.turnuva {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

.ad-detail-icon {
    font-size: 1.1rem;
}

/* Title */
.ad-detail-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.ad-detail-title::before {
    content: '';
    width: 4px;
    height: 28px;
    background: linear-gradient(180deg, #3b82f6, #8b5cf6);
    border-radius: 2px;
}

/* Content */
.ad-detail-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #cbd5e1;
    margin-bottom: 25px;
    padding: 25px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    border-left: 4px solid #3b82f6;
}

/* Author Info */
.ad-detail-author {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #94a3b8;
    font-size: 0.95rem;
    margin-bottom: 15px;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
}

.ad-detail-author i {
    color: #3b82f6;
}

.ad-detail-admin {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 8px;
}

/* Date */
.ad-detail-date {
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ad-detail-date i {
    color: #3b82f6;
}

/* Actions & Buttons */
.ad-detail-actions {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-options-title {
    color: #fff;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.contact-options {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.ad-detail-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.ad-detail-btn.whatsapp-btn {
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.ad-detail-btn.whatsapp-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
}

.ad-detail-btn.email-btn {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.ad-detail-btn.email-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

.ad-detail-btn.back-btn {
    background: rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.ad-detail-btn.back-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    transform: translateY(-2px);
}

.no-contact-info {
    color: #94a3b8;
    font-size: 0.9rem;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    border: 1px dashed rgba(255, 255, 255, 0.1);
}

/* Responsive */
@media (max-width: 768px) {
    .ad-detail-bg {
        padding: 20px 15px;
    }

    .ad-detail-container {
        padding: 25px 20px;
        border-radius: 16px;
    }

    .ad-detail-title {
        font-size: 1.4rem;
    }

    .ad-detail-content {
        font-size: 1rem;
        padding: 20px;
    }

    .contact-options {
        flex-direction: column;
    }

    .ad-detail-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .ad-detail-type {
        font-size: 0.85rem;
        padding: 10px 18px;
    }

    .ad-detail-title {
        font-size: 1.2rem;
    }

    .ad-detail-title::before {
        height: 22px;
    }
}