/* Import design system buttons */
@import url('buttons.css');

/* ============================================================
   POPUP VELOURS — vérification d'âge (14/11/2026)
   Dessin du modèle (dashboard_posts.css, .dpost-modal* ; account.css, .pv-*) :
   fond flouté, carte sombre unie à bordure blanche discrète, pastille dans
   un cercle neutre, titre en 800, deux boutons en pilule de même largeur.
   Le fond reste très opaque : le contenu ne doit pas se lire derrière.
   Fenêtre construite par /static/js/age_verification.js.
   ============================================================ */
.age-verification-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.92);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
}

.age-verification-overlay.hidden {
    display: none;
}

.age-verification-modal {
    position: relative;
    width: 100%;
    max-width: 420px;
    padding: 32px 24px 24px;
    text-align: center;
    background: rgb(22, 22, 22);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 22px;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.75);
    animation: ageModalIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes ageModalIn {
    from { opacity: 0; transform: translateY(28px) scale(0.94); }
    to   { opacity: 1; transform: none; }
}

/* Pastille « 18+ » dans le cercle neutre de la Popup Velours */
.age-verification-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.85);
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
}

.age-verification-title {
    margin: 0 0 8px;
    padding: 0;
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: var(--blanc, #fff);
    background: none;
    -webkit-text-fill-color: currentColor;
    text-wrap: balance;
}

.age-verification-text {
    margin: 0 0 4px;
    font-size: 0.9rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.6);
}

.age-verification-buttons {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 10px;
    margin-top: 24px;
}
.age-verification-buttons--single { grid-template-columns: minmax(0, 1fr); }

.age-btn {
    min-height: 46px;
    padding: 0 16px;
    border-radius: 999px;
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--blanc, #fff);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s, border-color 0.2s;
}
.age-btn--secondary {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.age-btn--secondary:hover { background: rgba(255, 255, 255, 0.1); }
.age-btn--primary {
    border: none;
    background: linear-gradient(135deg, var(--rose-fuchsia, #FF3EB5), var(--rouge-passion, #E30049));
    box-shadow: 0 4px 12px rgba(255, 62, 181, 0.3);
}
.age-btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 62, 181, 0.45);
}
.age-btn:focus-visible { outline: 2px solid var(--rose-fuchsia, #FF3EB5); outline-offset: 2px; }

/* Très petit écran : les deux boutons l'un sous l'autre, l'action principale en haut */
@media (max-width: 360px) {
    .age-verification-buttons { grid-template-columns: minmax(0, 1fr); }
    .age-btn--primary { order: -1; }
}

@media (prefers-reduced-motion: reduce) {
    .age-verification-modal { animation: none; }
    .age-btn--primary:hover { transform: none; }
}
