/*
========================================
COMPONENT: AGE VERIFICATION MODAL
FILE: css/modal-agegate.css
========================================
*/

/*
========================================
FONTS & BASIC STYLES
========================================
*/
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans:wght@400;700;800;900&display=swap');

:root {
    /* Color Palette */
    --agegate-red: #D80621;
    --agegate-green: #03C03C;
    --agegate-white: #FFFFFF;
    --agegate-black: #111111;
    --agegate-overlay: rgba(0, 0, 0, 0.97);
    --agegate-container-bg: rgba(17, 17, 17, 0.92);

    /* Sizing */
    --agegate-container-width: 30rem; /* 480px */
    --agegate-border-radius: 1rem; /* 16px */
}

body {
    /* Use a specific font-family for the modal context if needed,
       but the main body font is inherited from the site's global styles.
       The font-family is explicitly set on modal elements below. */
}

.agegate-scroll-lock {
    overflow: hidden;
}

/*
========================================
MODAL STYLES
========================================
*/

/* 2.5 OVERLAY */
.agegate-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--agegate-overlay);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 260ms ease-out, visibility 260ms ease-out;
    font-family: "Noto Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.agegate-overlay.agegate-visible {
    opacity: 1;
    visibility: visible;
}

/* 2.6 CONTAINER */
.agegate-container {
    width: var(--agegate-container-width);
    max-width: calc(100% - 2rem);
    background-color: var(--agegate-container-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--agegate-white);
    border-radius: var(--agegate-border-radius);
    color: var(--agegate-white);
    display: flex;
    flex-direction: column;
    text-align: center;
    transform: scale(0.96);
    transition: transform 260ms ease-out;
}

.agegate-overlay.agegate-visible .agegate-container {
    transform: scale(1);
}

/* 2.7 PADDING */
.agegate-header {
    padding: 1.5rem; /* 24px */
    display: flex;
    justify-content: center;
    align-items: center;
}

.agegate-body {
    padding: 0 1.5rem; /* 24px */
}

.agegate-footer {
    padding: 1.5rem; /* 24px */
}

/* 2.8 HEADER & BADGE */
.agegate-badge {
    width: 6rem; /* 96px */
    height: 6rem; /* 96px */
    border: 3px solid var(--agegate-red);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.agegate-badge-text {
    font-size: 1.375rem; /* 22px */
    font-weight: 800;
    color: var(--agegate-white);
}

/* 2.9 BODY */
.agegate-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 1rem 0;
    color: var(--agegate-white);
}

.agegate-text {
    font-size: 0.875rem; /* 14px */
    line-height: 1.8;
    text-align: justify;
    color: var(--agegate-white);
    margin: 0 0.2rem; /* As per spec */
}

/* 2.10 FOOTER / ACTIONS */
.agegate-actions {
    display: flex;
    justify-content: space-between;
    gap: 1.5rem; /* 24px */
}

/* 2.11 BUTTONS */
.agegate-button {
    height: 2rem; /* 32px */
    border-radius: 9999px;
    font-size: 0.875rem; /* 14px */
    font-weight: 400;
    cursor: pointer;
    border: 2px solid transparent;
    background-color: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1 1 0;
    min-width: 0;
    padding: 0 1rem; /* 16px */
    transition: all 150ms ease-in-out;
    white-space: nowrap;
}

#agegate-yes {
    border-color: var(--agegate-green);
    color: var(--agegate-green);
}

#agegate-no {
    border-color: var(--agegate-red);
    color: var(--agegate-red);
}

/* 2.12 INTERACTIVE STATES */
#agegate-yes:hover,
#agegate-yes:focus {
    background-color: var(--agegate-green);
    color: var(--agegate-black);
    font-weight: 700; /* bold */
    outline: none;
}

#agegate-no:hover,
#agegate-no:focus {
    background-color: var(--agegate-red);
    color: var(--agegate-black);
    font-weight: 700; /* bold */
    outline: none;
}

.agegate-button:active {
    transform: scale(0.98);
    box-shadow: inset 0 0 0 2px var(--agegate-black);
}

/* 2.13 ACCESS DENIED STATE */
.agegate-container.agegate-denied {
    background-color: var(--agegate-red);
}

.agegate-denied-content {
    padding: 3rem 1.5rem;
}

.agegate-denied-title {
    font-size: 1.5rem; /* 24px */
    font-weight: 900;
    color: var(--agegate-white);
    margin: 0 0 0.75rem 0;
}

.agegate-denied-text {
    font-size: 0.875rem; /* 14px */
    color: var(--agegate-white);
    margin: 0;
}

/* Helper class to hide elements */
.agegate-hidden {
    display: none !important;
}

/* 2.19 RESPONSIVENESS */
@media (max-width: 639px) {
    .agegate-actions {
        flex-direction: column;
        gap: 0.5rem; /* 8px */
    }
}
