/* ═══════════════════════════════════════════════════════════
   ADSMAN — Monetization Styles
   Visual integration with Neon Mandala's dark aesthetic
   ═══════════════════════════════════════════════════════════ */

/* ─── Consent Banner ─── */
#adsmanConsent {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 10000;
    padding: 0;
    transform: translateY(100%);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
                opacity 0.3s ease;
}
#adsmanConsent.visible {
    transform: translateY(0);
    opacity: 1;
}

.adsman-consent-inner {
    max-width: 960px;
    margin: 0 auto;
    padding: 20px 28px;
    background: rgba(10, 8, 18, 0.97);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-top: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: 16px 16px 0 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.5),
                0 -1px 0 rgba(168, 85, 247, 0.1);
}

.adsman-consent-text {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    flex: 1;
}

.adsman-consent-icon {
    font-size: 28px;
    flex-shrink: 0;
    margin-top: 2px;
}

.adsman-consent-text strong {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    display: block;
    margin-bottom: 4px;
    font-family: var(--font-display, 'Space Grotesk', sans-serif);
}

.adsman-consent-text p {
    color: rgba(255, 255, 255, 0.55);
    font-size: 13px;
    line-height: 1.5;
    margin: 0;
}

.adsman-consent-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.adsman-consent-btn {
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: var(--font-primary, 'Inter', sans-serif);
    white-space: nowrap;
}

.adsman-consent-accept {
    background: linear-gradient(135deg, #a855f7, #7c3aed);
    color: #fff;
    box-shadow: 0 0 16px rgba(168, 85, 247, 0.3);
}
.adsman-consent-accept:hover {
    background: linear-gradient(135deg, #c084fc, #8b5cf6);
    box-shadow: 0 0 24px rgba(168, 85, 247, 0.5);
    transform: translateY(-1px);
}

.adsman-consent-essential {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.adsman-consent-essential:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.adsman-consent-settings {
    background: transparent;
    color: rgba(255, 255, 255, 0.45);
    text-decoration: underline;
    padding: 10px 12px;
}
.adsman-consent-settings:hover {
    color: rgba(255, 255, 255, 0.7);
}


/* ─── Demo Banner Ad (Placeholder) ─── */
.adsman-demo-banner {
    width: 100%;
    max-width: 728px;
    margin: 0 auto;
}

.adsman-demo-inner {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.06), rgba(6, 182, 212, 0.04));
    border: 1px solid rgba(168, 85, 247, 0.15);
    border-radius: 12px;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
    transition: all 0.3s ease;
}
.adsman-demo-inner:hover {
    border-color: rgba(168, 85, 247, 0.3);
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.1), rgba(6, 182, 212, 0.06));
}

.adsman-demo-badge {
    position: absolute;
    top: 8px;
    right: 12px;
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.25);
    font-weight: 600;
    background: rgba(255, 255, 255, 0.05);
    padding: 2px 8px;
    border-radius: 4px;
}

.adsman-demo-content {
    flex: 1;
}

.adsman-demo-title {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
    font-family: var(--font-display, 'Space Grotesk', sans-serif);
}

.adsman-demo-desc {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.5;
    margin-bottom: 8px;
}

.adsman-demo-cta {
    font-size: 13px;
    font-weight: 600;
    color: #c084fc;
    text-decoration: none;
    transition: color 0.2s;
}
.adsman-demo-cta:hover {
    color: #e9d5ff;
}


/* ─── In-Feed Ad (Gallery) ─── */
.gallery-ad-card {
    border-radius: 12px;
    overflow: hidden;
}

.adsman-feed-ad {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.08), rgba(6, 182, 212, 0.05));
    border: 1px solid rgba(168, 85, 247, 0.15);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    position: relative;
}

.adsman-feed-visual {
    font-size: 48px;
    margin-bottom: 4px;
}

.adsman-feed-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.adsman-feed-text strong {
    color: #fff;
    font-size: 14px;
}
.adsman-feed-text span {
    color: rgba(255, 255, 255, 0.45);
    font-size: 12px;
}


/* ─── Interstitial Overlay ─── */
.adsman-interstitial {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0);
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    transition: background 0.4s ease,
                backdrop-filter 0.4s ease,
                -webkit-backdrop-filter 0.4s ease;
}
.adsman-interstitial.visible {
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.adsman-interstitial-card {
    background: rgba(15, 12, 24, 0.98);
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: 20px;
    padding: 32px;
    max-width: 420px;
    width: 90%;
    position: relative;
    transform: scale(0.9) translateY(20px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: 0 24px 80px rgba(168, 85, 247, 0.15),
                0 0 0 1px rgba(168, 85, 247, 0.08);
}
.adsman-interstitial.visible .adsman-interstitial-card {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.adsman-interstitial-close {
    position: absolute;
    top: 12px;
    right: 16px;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    z-index: 2;
}
.adsman-interstitial-close:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.2);
}

.adsman-interstitial-timer {
    text-align: center;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 16px;
    font-weight: 500;
}
.adsman-interstitial-timer span {
    color: #c084fc;
    font-weight: 700;
    font-family: var(--font-display, 'Space Grotesk', sans-serif);
}

.adsman-interstitial-content {
    text-align: center;
}

.adsman-interstitial-demo {
    padding: 8px 0;
}

.adsman-interstitial-demo-emoji {
    font-size: 56px;
    margin-bottom: 16px;
}

.adsman-interstitial-demo h3 {
    font-family: var(--font-display, 'Space Grotesk', sans-serif);
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
}

.adsman-interstitial-demo p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.7;
    margin-bottom: 24px;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
}

.adsman-interstitial-cta {
    display: inline-block;
    padding: 12px 28px;
    background: linear-gradient(135deg, #a855f7, #7c3aed);
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 0 24px rgba(168, 85, 247, 0.3);
}
.adsman-interstitial-cta:hover {
    box-shadow: 0 0 40px rgba(168, 85, 247, 0.5);
    transform: translateY(-2px);
}

.adsman-interstitial-demo-note {
    margin-top: 20px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.2);
    font-style: italic;
}


/* ─── Exit-Intent Popup ─── */
.adsman-exit-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0);
    transition: background 0.4s ease;
}
.adsman-exit-popup.visible {
    background: rgba(0, 0, 0, 0.8);
}

.adsman-exit-card {
    background: rgba(15, 12, 24, 0.98);
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: 20px;
    padding: 40px 32px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    position: relative;
    transform: scale(0.85);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: 0 24px 80px rgba(168, 85, 247, 0.15);
}
.adsman-exit-popup.visible .adsman-exit-card {
    transform: scale(1);
    opacity: 1;
}

.adsman-exit-close {
    position: absolute;
    top: 12px;
    right: 16px;
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}
.adsman-exit-close:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.adsman-exit-emoji {
    font-size: 48px;
    margin-bottom: 16px;
}

.adsman-exit-title {
    font-family: var(--font-display, 'Space Grotesk', sans-serif);
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
}

.adsman-exit-desc {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.7;
    margin-bottom: 24px;
}

.adsman-exit-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.adsman-exit-cta-primary {
    display: block;
    padding: 14px 24px;
    background: linear-gradient(135deg, #a855f7, #7c3aed);
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    border-radius: 10px;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s;
    box-shadow: 0 0 24px rgba(168, 85, 247, 0.3);
}
.adsman-exit-cta-primary:hover {
    box-shadow: 0 0 40px rgba(168, 85, 247, 0.5);
    transform: translateY(-2px);
}

.adsman-exit-cta-secondary {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.35);
    font-size: 13px;
    cursor: pointer;
    padding: 8px;
    transition: color 0.2s;
}
.adsman-exit-cta-secondary:hover {
    color: rgba(255, 255, 255, 0.6);
}


/* ─── In-Article Ad Zone ─── */
.adsman-in-article {
    border-radius: 12px;
    overflow: hidden;
}

.adsman-between-articles {
    padding: 24px 0;
}


/* ─── Responsive ─── */
@media (max-width: 768px) {
    .adsman-consent-inner {
        flex-direction: column;
        padding: 16px 20px;
        border-radius: 12px 12px 0 0;
    }
    
    .adsman-consent-actions {
        width: 100%;
        justify-content: center;
    }
    
    .adsman-consent-btn {
        padding: 10px 16px;
        font-size: 12px;
    }

    .adsman-interstitial-card {
        padding: 24px 20px;
        max-width: 340px;
    }

    .adsman-exit-card {
        padding: 32px 24px;
        max-width: 340px;
    }

    .adsman-demo-inner {
        flex-direction: column;
        text-align: center;
        padding: 16px;
    }
}
