/* ============================================================
   DooPlay Premium Episodes — Frontend CSS
   ============================================================ */

/* ── Variables ──────────────────────────────────────────────── */
:root {
    --dprem-purple:       #7c3aed;
    --dprem-purple-dark:  #5b21b6;
    --dprem-purple-light: #ede9fe;
    --dprem-gold:         #f59e0b;
    --dprem-gold-light:   #fef3c7;
    --dprem-green:        #16a34a;
    --dprem-red:          #dc2626;
    --dprem-gray:         #6b7280;
    --dprem-bg:           #1a1a2e;
    --dprem-card-bg:      #16213e;
    --dprem-border:       rgba(255,255,255,.1);
    --dprem-radius:       12px;
    --dprem-shadow:       0 8px 32px rgba(0,0,0,.45);
    --dprem-font:         -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ── Support banner ─────────────────────────────────────────── */
.dprem-support-banner {
    margin: 0 0 20px;
    border-radius: var(--dprem-radius);
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
    border: 1px solid rgba(124,58,237,.4);
    box-shadow: 0 4px 20px rgba(124,58,237,.2);
    overflow: hidden;
    font-family: var(--dprem-font);
}

.dprem-support-inner {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    flex-wrap: wrap;
}

.dprem-support-icon {
    font-size: 28px;
    flex-shrink: 0;
    line-height: 1;
}

.dprem-support-message {
    flex: 1;
    min-width: 200px;
    margin: 0;
    font-size: 14px;
    line-height: 1.55;
    color: #c4b5fd;
}

.dprem-support-btn {
    display: inline-block;
    padding: 9px 20px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--dprem-gold) 0%, #d97706 100%);
    color: #1c1c1c !important;
    font-weight: 700;
    font-size: 13px;
    text-decoration: none !important;
    white-space: nowrap;
    transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
    box-shadow: 0 3px 12px rgba(245,158,11,.35);
    flex-shrink: 0;
}

.dprem-support-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245,158,11,.5);
    opacity: .95;
}

.dprem-support-btn:active {
    transform: translateY(0);
}

/* ── Exclusivity overlay ────────────────────────────────────── */
.dprem-exclusivity-overlay {
    position: relative;
    margin: 0 0 20px;
    border-radius: var(--dprem-radius);
    background: linear-gradient(160deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
    border: 1px solid rgba(124,58,237,.5);
    box-shadow: var(--dprem-shadow);
    overflow: hidden;
    font-family: var(--dprem-font);
    z-index: 10;
}

.dprem-exclusivity-overlay::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at top, rgba(124,58,237,.15) 0%, transparent 70%);
    pointer-events: none;
}

.dprem-exclusivity-inner {
    position: relative;
    text-align: center;
    padding: 40px 24px 36px;
}

.dprem-lock-icon {
    display: block;
    font-size: 52px;
    line-height: 1;
    margin-bottom: 16px;
    filter: drop-shadow(0 0 12px rgba(124,58,237,.7));
}

.dprem-excl-title {
    margin: 0 0 12px;
    font-size: 22px;
    font-weight: 800;
    color: #e9d5ff;
    letter-spacing: -.3px;
    text-shadow: 0 2px 8px rgba(0,0,0,.4);
}

.dprem-excl-desc {
    margin: 0 auto 28px;
    max-width: 520px;
    font-size: 14px;
    line-height: 1.65;
    color: #a78bfa;
}

/* ── Countdown ───────────────────────────────────────────────── */
.dprem-countdown {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0,0,0,.35);
    border: 1px solid rgba(124,58,237,.4);
    border-radius: 14px;
    padding: 16px 28px;
    margin-bottom: 24px;
    backdrop-filter: blur(8px);
}

.dprem-countdown-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 56px;
}

.dprem-cd-value {
    font-size: 36px;
    font-weight: 900;
    line-height: 1;
    color: #f5f3ff;
    font-variant-numeric: tabular-nums;
    letter-spacing: -1px;
    text-shadow: 0 0 20px rgba(167,139,250,.6);
    transition: color .3s ease;
}

.dprem-cd-value.dprem-cd-pulse {
    color: var(--dprem-gold);
}

.dprem-cd-label {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #7c3aed;
    margin-top: 4px;
}

.dprem-countdown-sep {
    font-size: 30px;
    font-weight: 900;
    color: rgba(124,58,237,.6);
    line-height: 1;
    padding-bottom: 14px;
}

.dprem-excl-login {
    margin: 0;
    font-size: 13px;
    color: #6d28d9;
}

.dprem-excl-login a {
    color: #a78bfa;
    text-decoration: underline;
}

.dprem-excl-login a:hover {
    color: #e9d5ff;
}

/* ── CTA button "Devenir Premium" ────────────────────────────── */
.dprem-cta-btn {
    display: inline-block;
    margin: 4px 0 16px;
    padding: 13px 28px;
    border-radius: 10px;
    background: linear-gradient(135deg, #7c3aed 0%, #4f46e5 100%);
    color: #fff !important;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none !important;
    border: none;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease;
    box-shadow: 0 4px 16px rgba(124,58,237,.45);
    letter-spacing: .2px;
}

.dprem-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(124,58,237,.6);
    color: #fff !important;
}

.dprem-cta-nolink {
    cursor: default;
    opacity: .85;
}

/* ── Ad code wrapper ────────────────────────────────────────── */
.dprem-adcode-wrapper {
    margin: 0 0 16px;
    width: 100%;
    box-sizing: border-box;
}

.dprem-adcode-wrapper iframe,
.dprem-adcode-wrapper > div {
    max-width: 100%;
}

/* ── Expired state (rechargement auto) ───────────────────────── */
.dprem-expired-message {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    border-radius: 8px;
    background: rgba(22,163,74,.15);
    border: 1px solid rgba(22,163,74,.4);
    color: #86efac;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media ( max-width: 600px ) {
    .dprem-support-inner {
        flex-direction: column;
        text-align: center;
        gap: 10px;
        padding: 14px 16px;
    }

    .dprem-support-btn {
        width: 100%;
        text-align: center;
    }

    .dprem-exclusivity-inner {
        padding: 28px 16px 24px;
    }

    .dprem-excl-title {
        font-size: 18px;
    }

    .dprem-countdown {
        gap: 6px;
        padding: 14px 16px;
    }

    .dprem-countdown-block {
        min-width: 44px;
    }

    .dprem-cd-value {
        font-size: 28px;
    }

    .dprem-lock-icon {
        font-size: 40px;
    }
}
