/* =====================================================
   Age Verification — ageverification.css
   PrestaShop 8.2 Module
   ===================================================== */

/* ---------- CSS Variables ---------- */
:root {
    --av-primary:       #1a1a2e;
    --av-accent:        #c8972a;
    --av-accent-light:  #e8b84b;
    --av-surface:       #ffffff;
    --av-text:          #1a1a2e;
    --av-text-muted:    #666680;
    --av-danger:        #c0392b;
    --av-danger-hover:  #a93226;
    --av-radius:        16px;
    --av-shadow:        0 32px 80px rgba(0,0,0,0.45);
    --av-transition:    0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Overlay ---------- */
.av-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    animation: avFadeIn 0.4s var(--av-transition) forwards;
}

.av-overlay.av-hidden {
    opacity: 0;
    pointer-events: none;
    animation: avFadeOut 0.3s var(--av-transition) forwards;
}

.av-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 26, 0.85);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

/* ---------- Modal ---------- */
.av-modal {
    position: relative;
    z-index: 1;
    background: var(--av-surface);
    border-radius: var(--av-radius);
    box-shadow: var(--av-shadow);
    padding: 48px 40px 36px;
    max-width: 460px;
    width: 100%;
    text-align: center;
    transform: translateY(24px) scale(0.97);
    animation: avSlideUp 0.4s 0.05s var(--av-transition) forwards;

    /* Gold top border accent */
    border-top: 4px solid var(--av-accent);
}

/* ---------- Shield Icon ---------- */
.av-shield-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
    color: var(--av-accent);
    filter: drop-shadow(0 4px 12px rgba(200, 151, 42, 0.35));
    animation: avPulse 2.5s ease-in-out infinite;
}

.av-shield-icon svg {
    width: 100%;
    height: 100%;
}

/* ---------- Typography ---------- */
.av-title {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--av-primary);
    margin: 0 0 14px;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.av-message {
    font-family: system-ui, -apple-system, sans-serif;
    font-size: 0.95rem;
    color: var(--av-text-muted);
    line-height: 1.65;
    margin: 0;
}

.av-divider {
    width: 48px;
    height: 2px;
    background: linear-gradient(90deg, var(--av-accent), var(--av-accent-light));
    border-radius: 99px;
    margin: 22px auto;
}

.av-question {
    font-family: system-ui, -apple-system, sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--av-text);
    margin: 0 0 24px;
}

/* ---------- Buttons ---------- */
.av-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.av-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border: none;
    border-radius: 10px;
    font-family: system-ui, -apple-system, sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform var(--av-transition), box-shadow var(--av-transition), background var(--av-transition);
    letter-spacing: 0.02em;
    min-width: 150px;
    justify-content: center;
}

.av-btn:focus-visible {
    outline: 3px solid var(--av-accent);
    outline-offset: 3px;
}

.av-btn-icon {
    font-size: 1rem;
    line-height: 1;
}

/* Yes button — gold */
.av-btn-yes {
    background: linear-gradient(135deg, var(--av-accent) 0%, var(--av-accent-light) 100%);
    color: #fff;
    box-shadow: 0 6px 20px rgba(200, 151, 42, 0.4);
}

.av-btn-yes:hover,
.av-btn-yes:focus {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(200, 151, 42, 0.55);
    background: linear-gradient(135deg, var(--av-accent-light) 0%, var(--av-accent) 100%);
}

.av-btn-yes:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(200, 151, 42, 0.3);
}

/* No button — subtle red */
.av-btn-no {
    background: #f5f5f8;
    color: var(--av-danger);
    border: 1.5px solid #e0e0eb;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.av-btn-no:hover,
.av-btn-no:focus {
    background: var(--av-danger);
    color: #fff;
    border-color: var(--av-danger);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(192, 57, 43, 0.35);
}

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

/* ---------- Legal text ---------- */
.av-legal {
    font-family: system-ui, -apple-system, sans-serif;
    font-size: 0.75rem;
    color: var(--av-text-muted);
    margin: 0;
    line-height: 1.5;
}

.av-legal a {
    color: var(--av-accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.av-legal a:hover {
    color: var(--av-accent-light);
}

/* ---------- Keyframes ---------- */
@keyframes avFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes avFadeOut {
    from { opacity: 1; }
    to   { opacity: 0; }
}

@keyframes avSlideUp {
    from { transform: translateY(24px) scale(0.97); opacity: 0; }
    to   { transform: translateY(0)    scale(1);    opacity: 1; }
}

@keyframes avPulse {
    0%, 100% { transform: scale(1);    filter: drop-shadow(0 4px 12px rgba(200,151,42,0.35)); }
    50%       { transform: scale(1.06); filter: drop-shadow(0 6px 18px rgba(200,151,42,0.55)); }
}

/* ---------- Responsive ---------- */
@media (max-width: 480px) {
    .av-modal {
        padding: 36px 24px 28px;
    }

    .av-title {
        font-size: 1.35rem;
    }

    .av-actions {
        flex-direction: column;
    }

    .av-btn {
        width: 100%;
    }
}
