/* ===================================
   Ad Display Styles
   Sponsors have priority, premium styling
   =================================== */

.ad-container {
    margin: 1rem 0;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

/* Sponsor Ads (Priority 100 - Premium Styling) */
.ad-sponsor {
    display: block;
    position: relative;
    border: 2px solid #2ecc71;
    border-radius: 8px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 1rem;
    box-shadow: 0 4px 15px rgba(46, 204, 113, 0.2);
    transition: all 0.3s ease;
}

.ad-sponsor:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(46, 204, 113, 0.3);
    border-color: #27ae60;
}

.ad-sponsor-flag {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(46, 204, 113, 0.4);
}

.ad-sponsor-flag::before {
    content: '⭐ ';
}

/* Paid Ads (Standard Styling) */
.ad-paid {
    display: block;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    background: #ffffff;
    transition: all 0.3s ease;
}

.ad-paid:hover {
    border-color: #3498db;
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.15);
}

/* Ad Images */
.ad-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
}

/* Text-Only Ads */
.ad-text-only {
    padding: 1.5rem;
    text-align: center;
}

.ad-text-only h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.ad-text-only p {
    font-size: 0.95rem;
    color: #5a6c7d;
    margin-bottom: 0.75rem;
}

.sponsor-badge {
    display: inline-block;
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    color: white;
    padding: 0.375rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(46, 204, 113, 0.3);
}

/* Zone-Specific Styling */
.ad-zone-header_banner {
    max-width: 728px;
    margin: 1rem auto;
}

.ad-zone-sidebar_top,
.ad-zone-sidebar_bottom {
    max-width: 300px;
}

.ad-zone-footer_banner {
    max-width: 970px;
    margin: 2rem auto;
}

.ad-zone-mobile_banner {
    max-width: 320px;
    margin: 1rem auto;
}

/* Responsive */
@media (max-width: 768px) {
    .ad-zone-header_banner,
    .ad-zone-footer_banner {
        max-width: 100%;
    }
    
    .ad-sponsor {
        padding: 0.75rem;
    }
}

/* Affiliate Links Section */
.affiliate-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.affiliate-link-card {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.affiliate-link-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    border-color: #3498db;
}

.affiliate-link-card img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin-bottom: 0.75rem;
}

.affiliate-link-card h5 {
    font-size: 1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.affiliate-link-card p {
    font-size: 0.875rem;
    color: #5a6c7d;
}
