/* CHLAT Age Gate — modal styles
 *
 * Mobile-first, no external dependencies, plain CSS.
 * Designed to load fast (~3KB) and not affect Core Web Vitals.
 */

.chlat-age-gate {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.chlat-age-gate *,
.chlat-age-gate *::before,
.chlat-age-gate *::after {
    box-sizing: border-box;
}

.chlat-age-gate__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.chlat-age-gate__modal {
    position: relative;
    background: #131820;
    color: #fff;
    border-radius: 12px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
    max-width: 580px;
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.08);
    animation: chlat-fade-in 0.22s ease-out;
}

@keyframes chlat-fade-in {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.chlat-age-gate__content {
    padding: 28px 28px 24px;
}

/* Header: shield icon + title side-by-side */
.chlat-age-gate__header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.chlat-age-gate__icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    color: #fff;
}

.chlat-age-gate__title {
    margin: 0;
    font-size: 21px;
    font-weight: 800;
    text-align: left;
    color: #fff;
    line-height: 1.15;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.chlat-age-gate__message {
    font-size: 15px;
    line-height: 1.5;
    color: #c8c8c8;
    margin-bottom: 20px;
}

.chlat-age-gate__message p { margin: 0 0 8px; }
.chlat-age-gate__message p:last-child { margin-bottom: 0; }

/* Actions: side-by-side on desktop, stacked on mobile */
.chlat-age-gate__actions {
    display: flex;
    flex-direction: row;
    gap: 10px;
    margin-bottom: 16px;
}

.chlat-age-gate__btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 14px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    border: 0;
    font-family: inherit;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: background 0.15s ease, transform 0.08s ease;
    -webkit-tap-highlight-color: transparent;
    min-height: 48px;
}

.chlat-age-gate__btn:active { transform: scale(0.98); }

.chlat-age-gate__btn--primary,
.chlat-age-gate__btn--primary:link,
.chlat-age-gate__btn--primary:visited {
    background: #4285F4;
    color: #fff;
}
.chlat-age-gate__btn--primary:hover,
.chlat-age-gate__btn--primary:focus {
    background: #3b77db;
    color: #fff;
}
.chlat-age-gate__btn--primary:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.chlat-age-gate__btn--secondary,
.chlat-age-gate__btn--secondary:link,
.chlat-age-gate__btn--secondary:visited {
    background: #2a323d;
    color: #e6e9ee;
    border: 1px solid #39414c;
}
.chlat-age-gate__btn--secondary:hover,
.chlat-age-gate__btn--secondary:focus {
    background: #344050;
    color: #fff;
}

.chlat-age-gate__footer {
    margin: 0;
    font-size: 12px;
    line-height: 1.4;
    color: #888;
    text-align: center;
}

/* Lock body scroll while gate is open */
html.chlat-gate-open,
body.chlat-gate-open {
    overflow: hidden !important;
}

/* Mobile: stack buttons, tighten padding */
@media (max-width: 480px) {
    .chlat-age-gate__content { padding: 22px 20px 20px; }
    .chlat-age-gate__header { gap: 10px; margin-bottom: 14px; }
    .chlat-age-gate__title { font-size: 19px; }
    .chlat-age-gate__icon { width: 26px; height: 26px; }
    .chlat-age-gate__message { font-size: 16px; margin-bottom: 18px; }
    .chlat-age-gate__actions {
        flex-direction: column;
        gap: 8px;
    }
    .chlat-age-gate__btn {
        padding: 13px 18px;
        font-size: 14px;
        min-height: 46px;
    }
    .chlat-age-gate__footer { font-size: 12px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .chlat-age-gate__modal { animation: none; }
}
