/* ==========================================
   INTERSTITIAL ADS - CSS Standalone
   Sempre carrega, independente de ads_enabled
   ========================================== */

/* Overlay de fundo */
.interstitial-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.85) !important;
    z-index: 99999 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Modal centralizado */
.interstitial-modal {
    background: white !important;
    border-radius: 16px !important;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.4s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Header do modal */
.interstitial-header {
    padding: 24px;
    border-bottom: 1px solid #e5e7eb;
    text-align: center;
}

.interstitial-header h3 {
    margin: 0;
    font-size: 1.5rem;
    color: #1f2937;
}

/* Countdown timer */
.interstitial-countdown {
    padding: 16px;
    text-align: center;
    font-size: 1.125rem;
    color: #6b7280;
    background: #f3f4f6;
    border-radius: 8px;
    margin: 16px;
}

#interstitial-timer {
    font-weight: 700;
    color: #6366f1;
    font-size: 2rem;
}

/* Área do anúncio */
.interstitial-content {
    padding: 24px;
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fafafa;
}

/* Botão skip */
.interstitial-skip {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: calc(100% - 32px);
    margin: 0 16px 24px;
    padding: 16px 24px;
    background: #9ca3af;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.125rem;
    font-weight: 700;
    cursor: not-allowed;
    transition: all 0.3s;
    opacity: 0.6;
}

.interstitial-skip:disabled {
    cursor: not-allowed;
    background: #9ca3af;
}

.interstitial-skip.active {
    opacity: 1;
    background: #6366f1;
    cursor: pointer;
}

.interstitial-skip.active:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    background: #4f46e5;
}

.skip-icon {
    font-size: 1.5rem;
}

/* Mobile responsivo */
@media (max-width: 640px) {
    .interstitial-modal {
        width: 95%;
        max-height: 80vh;
    }

    .interstitial-content {
        min-height: 200px;
        padding: 16px;
    }

    .interstitial-skip {
        font-size: 1rem;
        padding: 12px 16px;
    }
}

/* Dark mode */
[data-theme="dark"] .interstitial-modal {
    background: #1f2937 !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}

[data-theme="dark"] .interstitial-header h3 {
    color: white;
}

[data-theme="dark"] .interstitial-countdown {
    background: #374151;
    color: #d1d5db;
}

[data-theme="dark"] .interstitial-content {
    background: #111827;
}