/* ── Age Verification Plugin – Styles ── */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;900&family=DM+Sans:wght@400;500;600&display=swap');

/* ── Overlay ── */
#av-overlay {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(6, 6, 10, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    animation: av-fade-in 0.4s ease forwards;
}

@keyframes av-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* ── Popup card ── */
#av-popup {
    position: relative;
    width: 100%;
    max-width: 480px;
    background: #0f0f17;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 20px;
    padding: 48px 40px 36px;
    text-align: center;
    color: #f0ede8;
    box-shadow:
        0 0 0 1px rgba(255,255,255,0.04),
        0 40px 80px rgba(0,0,0,0.7),
        0 0 60px rgba(212, 175, 55, 0.06);
    animation: av-slide-up 0.45s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    overflow: hidden;
}

/* subtle top glow line */
#av-popup::before {
    content: '';
    position: absolute;
    top: 0; left: 10%; right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(212,175,55,0.6), transparent);
}

@keyframes av-slide-up {
    from { opacity: 0; transform: translateY(32px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0)   scale(1); }
}

/* ── Logo ── */
.av-logo {
    margin-bottom: 20px;
}
.av-logo img {
    max-height: 56px;
    width: auto;
    object-fit: contain;
}

/* ── Icon ── */
.av-icon {
    font-size: 2.4rem;
    margin-bottom: 16px;
    display: block;
    filter: drop-shadow(0 0 12px rgba(212,175,55,0.4));
}

/* ── Heading ── */
#av-popup h1 {
    font-family: 'Playfair Display', Georgia, serif !important;
    font-size: 1.85rem !important;
    font-weight: 900 !important;
    letter-spacing: -0.02em;
    color: #f0ede8 !important;
    margin: 0 0 12px !important;
    line-height: 1.2 !important;
    text-shadow: 0 2px 20px rgba(212,175,55,0.2);
}

/* ── Question ── */
.av-question {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.25rem !important;
    color: #d4af37 !important;
    font-weight: 700;
    margin: 0 0 10px !important;
    letter-spacing: 0.01em;
}

.av-subtitle {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.875rem !important;
    color: rgba(240,237,232,0.5) !important;
    margin: 0 0 32px !important;
    line-height: 1.6 !important;
}

/* ── Divider ── */
.av-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

/* ── Buttons ── */
.av-btn {
    width: 100%;
    padding: 15px 24px;
    border: none;
    border-radius: 10px;
    font-family: 'DM Sans', sans-serif !important;
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
    letter-spacing: 0.02em;
}

.av-btn:hover {
    transform: translateY(-2px);
}

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

/* Yes */
.av-btn-yes {
    background: linear-gradient(135deg, #d4af37 0%, #f0cd5e 50%, #c9a227 100%) !important;
    color: #0f0f17 !important;
    box-shadow: 0 4px 24px rgba(212,175,55,0.35);
}

.av-btn-yes:hover {
    box-shadow: 0 8px 32px rgba(212,175,55,0.5);
}

/* No */
.av-btn-no {
    background: transparent !important;
    color: rgba(240,237,232,0.55) !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
}

.av-btn-no:hover {
    background: rgba(255,255,255,0.05) !important;
    color: rgba(240,237,232,0.8) !important;
    box-shadow: none;
}

/* ── Denied state ── */
.av-denied {
    padding: 8px 0;
    animation: av-fade-in 0.3s ease forwards;
}

.av-denied-icon {
    font-size: 2.6rem;
    margin-bottom: 16px;
    display: block;
    filter: drop-shadow(0 0 10px rgba(220,60,60,0.5));
}

.av-denied p {
    font-family: 'DM Sans', sans-serif;
    font-size: 1rem !important;
    color: rgba(240,237,232,0.75) !important;
    margin: 0 0 24px !important;
    line-height: 1.7 !important;
}

.av-btn-back {
    background: transparent !important;
    color: #d4af37 !important;
    border: 1px solid rgba(212,175,55,0.35) !important;
    font-size: 0.9rem !important;
    padding: 12px 24px !important;
    width: auto !important;
}

.av-btn-back:hover {
    background: rgba(212,175,55,0.08) !important;
    box-shadow: none;
}


/* ── Hidden ── */
#av-overlay.av-hidden {
    animation: av-fade-out 0.35s ease forwards;
    pointer-events: none;
}

@keyframes av-fade-out {
    to { opacity: 0; }
}

/* ── Mobile ── */
@media (max-width: 520px) {
    #av-popup {
        padding: 36px 24px 28px;
    }
    #av-popup h1 {
        font-size: 1.5rem !important;
    }
}
