/* =========================================================
   Age Verification Popup — style.css
   ========================================================= */

/* Overlay — copre tutta la schermata */
#avp-overlay {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    padding: 16px;
    /* nascosto finché JS non ha controllato il cookie */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

#avp-overlay.avp-visible {
    opacity: 1;
    visibility: visible;
}

/* Blocco centrale */
#avp-popup {
    background: #fff;
    border-radius: 16px;
    padding: 48px 40px 40px;
    max-width: 480px;
    width: 100%;
    text-align: center;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

#avp-overlay.avp-visible #avp-popup {
    transform: translateY(0);
}

/* ---- Badge +18 ---- */
#avp-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: #c0392b;
    color: #fff;
    margin-bottom: 24px;
    line-height: 1;
    box-shadow: 0 4px 16px rgba(192, 57, 43, 0.45);
}

#avp-badge .avp-plus {
    font-size: 36px;
    font-weight: 900;
    font-family: Arial, sans-serif;
    margin-top: -6px;
}

#avp-badge .avp-num {
    font-size: 48px;
    font-weight: 900;
    font-family: Arial, sans-serif;
    letter-spacing: -2px;
}

/* ---- Testi ---- */
#avp-heading {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 12px;
    line-height: 1.3;
}

#avp-message {
    font-size: 15px;
    color: #555;
    line-height: 1.6;
    margin: 0 0 32px;
}

/* ---- Pulsanti ---- */
#avp-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.avp-btn {
    display: block;
    width: 100%;
    padding: 14px 20px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
    font-family: inherit;
}

.avp-btn:active {
    transform: scale(0.98);
}

/* Pulsante "Sì" — verde */
.avp-btn--yes {
    background: #27ae60;
    color: #fff;
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.35);
}

.avp-btn--yes:hover {
    background: #219a52;
    box-shadow: 0 6px 18px rgba(39, 174, 96, 0.45);
}

/* Pulsante "No" — grigio bordo */
.avp-btn--no {
    background: transparent;
    color: #777;
    border: 2px solid #ddd;
}

.avp-btn--no:hover {
    background: #f5f5f5;
    border-color: #bbb;
    color: #444;
}

/* =========================================================
   Responsive — schermi piccoli
   ========================================================= */
@media (max-width: 520px) {
    #avp-popup {
        padding: 36px 24px 32px;
    }

    #avp-badge {
        width: 80px;
        height: 80px;
        margin-bottom: 20px;
    }

    #avp-badge .avp-plus {
        font-size: 28px;
    }

    #avp-badge .avp-num {
        font-size: 38px;
    }

    #avp-heading {
        font-size: 19px;
    }

    #avp-message {
        font-size: 14px;
    }

    .avp-btn {
        font-size: 15px;
        padding: 13px 16px;
    }
}
