/* Ad Detail Page Specific Styles */
body.ad-detail-page {
    background-color: #f8f9fa;
}

.content-wrapper {
    background-color: #f8f9fa;
    padding: 20px 0 40px;
    min-height: calc(100vh - 200px);
}

.ad-detail-container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 25px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    border: 1px solid #eaeaea;
}

/* Breadcrumb */
.breadcrumb {
    padding: 1rem 0;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.breadcrumb a {
    color: var(--primary-blue);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb-separator {
    margin: 0 0.5rem;
    color: #999;
}

/* Ad Header */
.ad-header {
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.ad-title-section {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.ad-title {
    font-size: 28px;
    color: #333;
    margin: 0;
    flex: 1;
}

.ad-actions {
    display: flex;
    gap: 10px;
}

.action-btn {
    background: none;
    border: none;
    font-size: 18px;
    color: #777;
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.action-btn:hover {
    background-color: #f5f5f5;
    color: var(--primary-blue);
}

.action-btn.active {
    color: #e74c3c;
}

.ad-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    color: #666;
    font-size: 14px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.meta-item i {
    color: var(--primary-blue);
}

/* Ad Content */
.ad-content {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 30px;
}

/* Ad Images */
.ad-images {
    flex: 1;
    min-width: 300px;
}

.main-image-container {
    position: relative;
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    background: #f9f9f9;
    border: 1px solid #eee;
}

.main-image {
    width: 100%;
    height: 400px;
    object-fit: contain;
    display: block;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.main-image-container:hover .image-overlay {
    background: rgba(0,0,0,0.3);
}

.zoom-btn {
    color: white;
    font-size: 24px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.main-image-container:hover .zoom-btn {
    opacity: 1;
}

.thumbnail-container {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 5px 0;
}

.thumbnail {
    width: 80px;
    height: 80px;
    object-fit: cover;
    cursor: pointer;
    border-radius: 4px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.thumbnail:hover {
    border-color: var(--primary-blue);
    transform: scale(1.05);
}

.thumbnail.active {
    border-color: var(--premium-gold);
}

.no-image-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 300px;
    background: #f9f9f9;
    border-radius: 8px;
    color: #999;
    border: 1px solid #eee;
}

.no-image-placeholder i {
    font-size: 48px;
    margin-bottom: 15px;
}

/* Ad Info Panel */
.ad-info-panel {
    flex: 1;
    min-width: 300px;
}

.ad-description {
    margin-bottom: 25px;
}

.ad-description h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ad-description h3 i {
    color: var(--primary-blue);
}

.description-content {
    line-height: 1.6;
    color: #444;
    background: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #eee;
}

/* Video Container */
.video-container {
    margin-bottom: 25px;
}

.video-container h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

.video-container h3 i {
    color: var(--primary-blue);
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid #eee;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Ad Contact */
.ad-contact {
    background: #f5f5f5;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #eee;
}

.contact-title {
    font-size: 18px;
    margin-bottom: 15px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

.contact-title i {
    color: var(--primary-blue);
}

.contact-details {
    margin-bottom: 20px;
}

.contact-info {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #333;
}

.contact-info i {
    color: var(--primary-blue);
    width: 20px;
    text-align: center;
}

.contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 15px;
    border-radius: 4px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    flex: 1;
    min-width: 120px;
}

.phone-btn {
    background-color: var(--primary-blue);
    color: white;
}

.phone-btn:hover {
    background-color: #00458a;
}

.email-btn {
    background-color: var(--growth-green);
    color: white;
}

.email-btn:hover {
    background-color: #25a25a;
}

.whatsapp-btn {
    background-color: #25D366;
    color: white;
}

.whatsapp-btn:hover {
    background-color: #128C7E;
}

/* Social Sharing */
.social-sharing {
    margin-bottom: 30px;
    padding: 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border: 1px solid #eee;
}

.social-sharing h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

.social-sharing h3 i {
    color: var(--primary-blue);
}

.share-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.share-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.facebook-btn {
    background-color: #3b5998;
}

.facebook-btn:hover {
    background-color: #2d4373;
}

.twitter-btn {
    background-color: #1DA1F2;
}

.twitter-btn:hover {
    background-color: #0c85d0;
}

.linkedin-btn {
    background-color: #0077b5;
}

.linkedin-btn:hover {
    background-color: #005885;
}

.whatsapp-btn {
    background-color: #25D366;
}

.whatsapp-btn:hover {
    background-color: #128C7E;
}

.copy-btn {
    background-color: #666;
}

.copy-btn:hover {
    background-color: #555;
}

/* Related Ads */
.related-ads {
    margin-bottom: 30px;
    padding: 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border: 1px solid #eee;
}

.related-ads h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

.related-ads h3 i {
    color: var(--primary-blue);
}

.related-ads-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.related-ad-card {
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    background: #fff;
}

.related-ad-card:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transform: translateY(-5px);
}

.related-ad-image {
    height: 150px;
    overflow: hidden;
}

.related-ad-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.related-ad-card:hover .related-ad-image img {
    transform: scale(1.05);
}

.related-ad-info {
    padding: 15px;
}

.related-ad-info h4 {
    margin: 0 0 10px;
    font-size: 16px;
    color: #333;
}

.related-ad-meta {
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 13px;
    color: #666;
}

.related-ad-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.related-ad-meta i {
    color: var(--primary-blue);
}

/* Notification */
.notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--growth-green);
    color: white;
    padding: 15px 20px;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 1000;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
}

.notification.show {
    transform: translateY(0);
    opacity: 1;
}

.notification i {
    font-size: 18px;
}

/* CTA Section Adjustments */
.cta {
    background: linear-gradient(rgba(26, 62, 114, 0.9), rgba(26, 62, 114, 0.9)), 
                url('https://via.placeholder.com/1920x600?text=Football+Banner') no-repeat center center/cover;
    color: white;
    text-align: center;
    padding: 4rem 0;
    margin-top: 30px;
    border-radius: 10px;
}

/* Footer Adjustments for Ad Detail Page */
body.ad-detail-page footer {
    margin-top: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive Styles */
@media (max-width: 768px) {
    .ad-content {
        flex-direction: column;
    }
    
    .main-image {
        height: 300px;
    }
    
    .ad-title-section {
        flex-direction: column;
        gap: 15px;
    }
    
    .ad-actions {
        align-self: flex-start;
    }
    
    .contact-actions {
        flex-direction: column;
    }
    
    .contact-btn {
        width: 100%;
    }
    
    .related-ads-grid {
        grid-template-columns: 1fr;
    }
    
    .cta {
        border-radius: 0;
        margin-top: 20px;
    }
}