/* /assets/css/style.css — Age Gate v2 */

/* ===== GATE OVERLAY ===== */
body.sag-gated-active {
    overflow: hidden !important;
    height: 100vh !important;
    height: 100dvh !important;
}

body.sag-gated-active > *:not(.sag-overlay) {
    filter: blur(var(--sag-blur, 8px));
    pointer-events: none;
    user-select: none;
    transition: filter 0.6s ease;
}

.sag-overlay {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, var(--sag-opacity, 0.6));
    backdrop-filter: blur(var(--sag-blur, 8px));
    -webkit-backdrop-filter: blur(var(--sag-blur, 8px));
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    animation: sagFadeInOverlay 0.5s ease-out forwards;
}

.sag-overlay.sag-closing {
    animation: sagFadeOutOverlay 0.6s ease-in forwards;
}

@keyframes sagFadeInOverlay {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes sagFadeOutOverlay {
    from { opacity: 1; backdrop-filter: blur(var(--sag-blur, 8px)); }
    to   { opacity: 0; backdrop-filter: blur(0px); }
}

@keyframes sagFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}


/* ===== CARD SHELL ===== */
.sag-card {
    background: var(--sag-bg, #ffffff);
    color: var(--sag-text, #111827);
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    animation: sagPopIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.1s forwards;
    box-sizing: border-box;
    max-height: 95vh;
}

@keyframes sagPopIn {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.sag-card.sag-closing {
    animation: sagPopOut 0.5s cubic-bezier(0.5, 0, 0.2, 1) forwards;
}

@keyframes sagPopOut {
    to {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
}


/* ===== IMAGE AREA ===== */
.sag-feature-area {
    display: block;
    overflow: hidden;
    background-color: var(--sag-bg, #ffffff);
    box-sizing: border-box;
    position: relative;
}

.sag-feature-area img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* ===== CONTENT AREA ===== */
.sag-content-area {
    padding: 36px 40px;
    box-sizing: border-box;
    overflow-y: auto;
    text-align: center;
}


/* =================================================================
   LAYOUT: LEFT IMAGE  (two-column side by side)
   ================================================================= */
.sag-layout-left_image {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: 900px;
    width: 100%;
}

.sag-layout-left_image .sag-feature-area {
    aspect-ratio: var(--sag-aspect-ratio, 3/4);
    min-height: 0;
}

.sag-layout-left_image .sag-content-area {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* No image variant */
.sag-layout-left_image.sag-no-image {
    grid-template-columns: 1fr;
    max-width: 480px;
}

.sag-layout-left_image.sag-no-image .sag-feature-area {
    display: none;
}


/* =================================================================
   LAYOUT: TOP BANNER  (single column, image on top)
   ================================================================= */
.sag-layout-top_banner {
    display: grid;
    grid-template-columns: 1fr;
    max-width: 480px;
    width: 100%;
}

.sag-layout-top_banner .sag-feature-area {
    aspect-ratio: var(--sag-aspect-ratio, 16/9);
    max-height: 45vh;
    min-height: 0;
}

.sag-layout-top_banner .sag-content-area {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* No image variant */
.sag-layout-top_banner.sag-no-image {
    max-width: 480px;
}

.sag-layout-top_banner.sag-no-image .sag-feature-area {
    display: none;
}


/* ===== LOGO ===== */
.sag-logo {
    text-align: center;
    margin-bottom: 20px;
}

.sag-logo img {
    max-width: 130px;
    height: auto;
}


/* ===== AGE BADGE ===== */
.sag-age-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px auto;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--sag-primary, #153593);
    animation: sagFadeIn 0.4s ease 0.4s backwards;
}

.sag-age-icon span {
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.5px;
    line-height: 1;
}


/* ===== HEADINGS ===== */
.sag-heading {
    margin: 0 0 8px 0 !important;
    font-size: 24px !important;
    font-weight: 700 !important;
    color: var(--sag-text, #111827) !important;
    text-align: center !important;
    line-height: 1.2 !important;
}

.sag-subtext {
    margin: 0 0 28px 0 !important;
    font-size: 14px !important;
    color: #6b7280 !important;
    text-align: center !important;
    line-height: 1.55 !important;
    max-width: 340px;
}


/* ===== AGE GATE BUTTONS ===== */
.sag-age-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    width: 100%;
    margin-bottom: 16px;
}

.sag-btn {
    flex: 1;
    max-width: 180px;
    padding: 13px 20px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s ease;
    box-sizing: border-box;
    letter-spacing: 0.01em;
}

/* YES button — solid primary */
.sag-btn-yes {
    background: var(--sag-primary, #153593);
    color: #ffffff;
    border-color: var(--sag-primary, #153593);
}

.sag-btn-yes:hover {
    filter: brightness(1.12);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(21, 53, 147, 0.3);
}

.sag-btn-yes:active {
    transform: translateY(0);
    filter: brightness(0.95);
}

/* NO button — ghost / outlined */
.sag-btn-no {
    background: transparent;
    color: #6b7280;
    border-color: #d1d5db;
}

.sag-btn-no:hover {
    background: #f9fafb;
    border-color: #9ca3af;
    color: #374151;
    transform: translateY(-1px);
}

.sag-btn-no:active {
    transform: translateY(0);
    background: #f3f4f6;
}


/* ===== DISCLAIMER TEXT ===== */
.sag-age-disclaimer {
    font-size: 11px !important;
    color: #9ca3af !important;
    text-align: center !important;
    margin: 0 !important;
    line-height: 1.5 !important;
}


/* =================================================================
   RESPONSIVE  ≤ 768px
   ================================================================= */
@media (max-width: 768px) {
    .sag-overlay {
        padding: 12px;
        align-items: center;
        overflow: hidden;
    }

    .sag-card {
        grid-template-columns: 1fr !important;
        max-width: 420px !important;
        width: 100% !important;
        max-height: calc(100vh - 24px);
        max-height: calc(100dvh - 24px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        margin: auto;
        touch-action: pan-y;
    }

    .sag-feature-area {
        aspect-ratio: var(--sag-aspect-ratio, 16/9) !important;
        max-height: 35vh;
    }

    .sag-content-area {
        padding: 28px 24px 36px !important;
    }

    .sag-logo {
        margin-bottom: 12px;
    }

    .sag-logo img {
        max-height: 32px;
        width: auto;
    }

    .sag-age-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 14px;
    }

    .sag-age-icon span {
        font-size: 18px;
    }

    .sag-heading {
        font-size: 20px !important;
        margin-bottom: 6px !important;
    }

    .sag-subtext {
        font-size: 13px !important;
        margin-bottom: 20px !important;
    }

    .sag-btn {
        padding: 11px 16px;
        font-size: 14px;
    }

    .sag-age-buttons {
        gap: 8px;
    }
}