/*
 * AlterGates — Age gate overlay styles
 *
 * The inline bootstrap <style> in displayHeader.tpl already covers FOUC-blocking
 * declarations (html.av-no-scroll, #av-overlay backdrop). This file styles the
 * card + buttons + responsive behavior for the final render.
 */

#av-overlay {
    font-family: var(--as-font-family, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif);
    color: #1a1a1a;
}

#av-overlay .av-overlay__card {
    max-width: 480px;
    width: 100%;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.32);
    padding: 40px 32px 32px;
    text-align: center;
    animation: av-overlay-pop 220ms ease-out;
}

@keyframes av-overlay-pop {
    from { opacity: 0; transform: translateY(12px) scale(0.98); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

#av-overlay .av-overlay__title {
    margin: 0 0 16px;
    font-size: 24px;
    line-height: 1.25;
    font-weight: 700;
    color: var(--as-amaranth, #d51f5b);
}

#av-overlay .av-overlay__body {
    margin: 0 0 32px;
    font-size: 16px;
    line-height: 1.5;
    color: #4a4a4a;
}

#av-overlay .av-overlay__actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
}

#av-overlay .av-overlay__btn {
    appearance: none;
    border: none;
    background: var(--as-amaranth, #d51f5b);
    color: #ffffff;
    font: inherit;
    font-weight: 600;
    font-size: 16px;
    padding: 14px 24px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 160ms ease, transform 80ms ease;
    min-height: 48px;
}

#av-overlay .av-overlay__btn:hover,
#av-overlay .av-overlay__btn:focus-visible {
    background: var(--as-amaranth-dark, #a8174a);
    outline: none;
}

#av-overlay .av-overlay__btn:active {
    transform: translateY(1px);
}

#av-overlay .av-overlay__link {
    color: #6b6b6b;
    font-size: 14px;
    text-decoration: underline;
    padding: 8px;
    border-radius: 4px;
    min-height: 32px;
    line-height: 1.5;
}

#av-overlay .av-overlay__link:hover,
#av-overlay .av-overlay__link:focus-visible {
    color: #1a1a1a;
    outline: none;
}

/* Mobile fine-tune */
@media (max-width: 480px) {
    #av-overlay .av-overlay__card {
        padding: 28px 20px 24px;
    }
    #av-overlay .av-overlay__title { font-size: 20px; }
    #av-overlay .av-overlay__body { font-size: 15px; margin-bottom: 24px; }
}
