/* ========================================
   SQUIZITO FAN - ADVERTISING STYLES
   Strategic ad placements for revenue generation
   ======================================== */

/* ===========================================
   TEMPORARILY HIDDEN - Enterprise ad system TBD
   Remove this block when implementing real ads
   =========================================== */
.ad-container,
.ad-slot,
.ad-banner,
.ad-leaderboard,
.ad-rectangle,
.ad-sidebar,
.ad-content,
.sponsor-card,
.rewarded-video-container {
    display: none !important;
}

/* Ad Container Base Styles */
.ad-container {
    background: linear-gradient(135deg, #1a1a24 0%, #12121a 100%);
    border-radius: 12px;
    padding: 4px;
    margin: 16px 0;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.ad-container:hover {
    transform: translateY(-1px);
}

/* Ad Label (FTC Compliance) */
.ad-label {
    position: absolute;
    top: 8px;
    left: 12px;
    font-size: 10px;
    color: #606070;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    z-index: 10;
}

.ad-label-small {
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 10px;
    color: #606070;
    background: rgba(0, 0, 0, 0.7);
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 10;
}

/* Tier-Based Borders */
.ad-gold {
    border: 1px solid rgba(179, 244, 0, 0.2);
    box-shadow: 0 0 15px rgba(179, 244, 0, 0.1);
}

.ad-gold:hover {
    border-color: rgba(179, 244, 0, 0.3);
    box-shadow: 0 0 20px rgba(179, 244, 0, 0.15);
}

.ad-silver {
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.ad-silver:hover {
    border-color: rgba(255, 255, 255, 0.15);
}

.ad-bronze {
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Ad Content Area */
.ad-content {
    width: 100%;
    min-height: 50px;
    border-radius: 8px;
    overflow: hidden;
}

/* Ad Placeholders (Demo Content) */
.ad-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a24 0%, #22222e 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 20px;
    color: #606070;
    font-size: 12px;
    text-align: center;
    position: relative;
}

.ad-size {
    font-size: 14px;
    font-weight: 600;
    color: #a0a0b0;
}

.ad-tier {
    font-size: 10px;
    color: #b3f400;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Standard Ad Formats */
.ad-leaderboard {
    height: 90px;
}

.ad-leaderboard-mobile {
    height: 100px;
}

.ad-banner-mobile {
    height: 50px;
}

.ad-rectangle {
    height: 250px;
}

.ad-skyscraper {
    height: 600px;
}

/* Responsive Ad Sizes */
@media (max-width: 767px) {
    .ad-desktop-only {
        display: none;
    }

    .ad-leaderboard {
        height: 100px;
    }
}

@media (min-width: 768px) {
    .ad-mobile-only {
        display: none;
    }
}

/* ========================================
   REWARDED VIDEO ADVERTISING
   ======================================== */

.rewarded-video-container {
    margin: 24px 0;
    padding: 4px;
    background: linear-gradient(135deg, #1a1a24 0%, #12121a 100%);
    border: 2px dashed rgba(179, 244, 0, 0.3);
    border-radius: 12px;
}

.rewarded-video-btn {
    width: 100%;
    background: linear-gradient(135deg, #1a1a24 0%, #22222e 100%);
    border: 2px dashed #b3f400;
    border-radius: 12px;
    padding: 20px 24px;
    color: #b3f400;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
    font-weight: 700;
}

.rewarded-video-btn:hover {
    background: rgba(179, 244, 0, 0.1);
    box-shadow: 0 0 20px rgba(179, 244, 0, 0.2);
    transform: translateY(-2px);
}

.rewarded-video-btn .coin-icon {
    font-size: 24px;
    animation: coin-bounce 2s infinite;
}

@keyframes coin-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

.rewarded-video-btn .reward-text {
    flex: 1;
    text-align: center;
}

.rewarded-video-btn .video-icon {
    font-size: 20px;
}

.rewarded-video-subtext {
    text-align: center;
    margin-top: 8px;
    font-size: 11px;
    color: #606070;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ========================================
   NATIVE ADVERTISING
   ======================================== */

.ad-native {
    position: relative;
}

.ad-native::before {
    content: 'Sponsored';
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 10px;
    color: #606070;
    background: rgba(0, 0, 0, 0.7);
    padding: 3px 8px;
    border-radius: 4px;
    z-index: 10;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ad-native-card {
    background: linear-gradient(135deg, #1a1a24 0%, #12121a 100%);
    border: 1px solid rgba(179, 244, 0, 0.15);
    border-radius: 12px;
    padding: 16px;
    margin: 12px 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ad-native-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(179, 244, 0, 0.2);
    border-color: rgba(179, 244, 0, 0.25);
}

/* ========================================
   SPONSORED CONTENT
   ======================================== */

.sponsored-section {
    background: linear-gradient(135deg, #1a1a24 0%, #12121a 100%);
    border-radius: 16px;
    padding: 24px;
    margin: 24px 0;
    border: 1px solid rgba(179, 244, 0, 0.2);
}

.sponsor-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sponsor-label {
    font-size: 11px;
    color: #606070;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sponsor-logo {
    flex: 1;
    text-align: right;
    font-size: 14px;
    font-weight: 700;
    color: #b3f400;
}

.sponsor-content {
    color: #a0a0b0;
    line-height: 1.6;
}

/* ========================================
   INTERSTITIAL ADS
   ======================================== */

.interstitial-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

.interstitial-overlay.active {
    display: flex;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.interstitial-content {
    position: relative;
    max-width: 400px;
    width: 100%;
}

.interstitial-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.interstitial-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.interstitial-ad {
    background: linear-gradient(135deg, #1a1a24 0%, #22222e 100%);
    border-radius: 12px;
    height: 480px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 2px solid rgba(179, 244, 0, 0.2);
}

.interstitial-skip {
    margin-top: 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    width: 100%;
}

.interstitial-skip:hover {
    background: rgba(255, 255, 255, 0.2);
}

.interstitial-skip:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ========================================
   STICKY BANNER (Mobile)
   ======================================== */

.sticky-banner-mobile {
    position: fixed;
    bottom: 60px; /* Above bottom nav */
    left: 0;
    right: 0;
    z-index: 98;
    background: #0a0a0f;
    padding: 4px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.5);
}

.sticky-banner-close {
    position: absolute;
    top: 4px;
    right: 4px;
    background: rgba(0, 0, 0, 0.7);
    border: none;
    color: #606070;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

/* ========================================
   SIDEBAR ADS (Desktop)
   ======================================== */

.sidebar-ad-container {
    position: sticky;
    top: 80px;
    margin-bottom: 24px;
}

@media (max-width: 767px) {
    .sidebar-ad-container {
        position: static;
    }
}

/* ========================================
   AD DEMO CONTENT
   ======================================== */

.ad-demo-brand {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: linear-gradient(135deg, #2a2a34 0%, #1a1a24 100%);
    padding: 20px;
}

.ad-demo-logo {
    font-size: 32px;
    font-weight: 900;
    color: #b3f400;
    text-shadow: 0 0 20px rgba(179, 244, 0, 0.5);
}

.ad-demo-tagline {
    font-size: 14px;
    color: #a0a0b0;
    text-align: center;
}

.ad-demo-cta {
    background: #b3f400;
    color: #0a0a0f;
    padding: 8px 20px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 13px;
    margin-top: 8px;
}

/* Specific Brand Demos */
.ad-brand-draftkings {
    background: linear-gradient(135deg, #1a4d2e 0%, #0a2815 100%);
}

.ad-brand-draftkings .ad-demo-logo {
    color: #52b788;
}

.ad-brand-fanduel {
    background: linear-gradient(135deg, #1e3a8a 0%, #0f1e47 100%);
}

.ad-brand-fanduel .ad-demo-logo {
    color: #3b82f6;
}

.ad-brand-nike {
    background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
}

.ad-brand-nike .ad-demo-logo {
    color: #ff6b35;
}

.ad-brand-redbull {
    background: linear-gradient(135deg, #1a2a4d 0%, #0a1525 100%);
}

.ad-brand-redbull .ad-demo-logo {
    color: #db0a40;
}

.ad-brand-ea-sports {
    background: linear-gradient(135deg, #2a1a3d 0%, #15091f 100%);
}

.ad-brand-ea-sports .ad-demo-logo {
    color: #ff3366;
}

/* ========================================
   MATCH SPONSOR BADGE
   ======================================== */

.match-sponsor-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: #606070;
    padding: 4px 10px;
    background: rgba(179, 244, 0, 0.05);
    border-radius: 4px;
    border: 1px solid rgba(179, 244, 0, 0.1);
}

.match-sponsor-logo {
    font-weight: 700;
    color: #b3f400;
}

/* ========================================
   UTILITY CLASSES
   ======================================== */

.ad-spacing-top {
    margin-top: 24px;
}

.ad-spacing-bottom {
    margin-bottom: 24px;
}

.ad-spacing-both {
    margin: 24px 0;
}

/* Hide ads on print */
@media print {
    .ad-container,
    .rewarded-video-container,
    .sponsored-section,
    .sticky-banner-mobile,
    .interstitial-overlay {
        display: none !important;
    }
}
