/* ===================== */
/* Reset & Body          */
/* ===================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --jr-pink: #ff2d78;
    --jr-hot: #ff0059;
    --jr-purple: #7a2ff0;
    --jr-violet: #b829e8;
    --jr-cyan: #23e0ff;
    --jr-dark: #0c0710;
    --jr-panel: #16101f;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--jr-dark);
    color: #f0f0f0;
    width: 100%;
    min-height: 100vh;
}

/* Locked = age gate visible, no scroll. Unlocked = content revealed. */
body.locked {
    overflow: hidden;
    height: 100vh;
}

body.unlocked {
    overflow-x: hidden;
}

/* ===================== */
/* Hero Section (100vh)  */
/* ===================== */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

#HeroBack {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
    z-index: 0;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 50% 40%, rgba(122, 47, 240, 0.25), transparent 60%),
        rgba(12, 7, 16, 0.72);
    z-index: 1;
}

/* Scroll hint at bottom of hero (only after unlock) */
.scroll-hint {
    position: absolute;
    bottom: 26px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: none;
    animation: bounce 1.8s infinite;
}

body.unlocked .scroll-hint {
    display: block;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

/* ===================== */
/* Navbar                */
/* ===================== */
.navbar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 28px;
    z-index: 50;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 3px;
    font-size: 1.4rem;
    font-weight: 900;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.nav-icon {
    color: var(--jr-cyan);
    font-size: 1.3rem;
    margin-right: 6px;
    filter: drop-shadow(0 0 6px rgba(35, 224, 255, 0.7));
}

.nav-jerk {
    color: var(--jr-pink);
    text-shadow: 0 0 12px rgba(255, 45, 120, 0.6);
}

.nav-roulette {
    color: #fff;
}

.nav-login {
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 1px;
    cursor: pointer;
    padding: 8px 18px;
    border: 1px solid rgba(255, 45, 120, 0.6);
    border-radius: 30px;
    transition: all 0.2s;
}

.nav-login:hover {
    background: var(--jr-hot);
    border-color: var(--jr-hot);
    box-shadow: 0 0 18px rgba(255, 0, 89, 0.5);
}

/* ===================== */
/* Language Menu         */
/* ===================== */
.nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.lang-menu {
    position: relative;
}

.lang-menu > summary {
    list-style: none;
    cursor: pointer;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 8px 14px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    transition: border-color 0.2s;
}

.lang-menu > summary::-webkit-details-marker { display: none; }
.lang-menu > summary::marker { content: ""; }
.lang-menu[open] > summary { border-color: var(--jr-pink); }

.lang-short { display: none; }

.lang-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 200;
    background: #160f1f;
    border: 1px solid rgba(255, 45, 120, 0.3);
    border-radius: 12px;
    padding: 8px;
    width: 260px;
    max-height: 62vh;
    overflow-y: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.lang-dropdown a {
    color: #d8cfe4;
    text-decoration: none;
    font-size: 0.8rem;
    padding: 7px 10px;
    border-radius: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: background 0.15s, color 0.15s;
}

.lang-dropdown a:hover { background: rgba(255, 45, 120, 0.15); color: #fff; }
.lang-dropdown a.current { background: var(--jr-hot); color: #fff; }

/* RTL support (Arabic, Hebrew, Persian) */
[dir="rtl"] article { text-align: right; }
[dir="rtl"] .lang-dropdown { right: auto; left: 0; }
/* keep brand logo & numeric step in natural LTR order even in RTL */
[dir="rtl"] .nav-logo,
[dir="rtl"] .disc-logo,
[dir="rtl"] .disc-step { direction: ltr; }
[dir="rtl"] article ul,
[dir="rtl"] article ol { padding-left: 0; padding-right: 24px; }
[dir="rtl"] article th,
[dir="rtl"] article td { text-align: right; }

/* ===================== */
/* Disclaimer Modal      */
/* ===================== */
#Disclaimer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    background: rgba(8, 10, 14, 0.35);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    padding: 16px;
}

#Disclaimer.hidden {
    display: none;
}

/* Circular teal age-gate (matches affiliate landing modal) */
.disc-content {
    position: relative;
    width: min(90vw, 440px);
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    background:
        radial-gradient(circle at 50% 38%, #1fb3c4 0%, #159aac 55%, #0e8496 100%);
    border: 3px solid rgba(255, 255, 255, 0.9);
    box-shadow:
        0 10px 60px rgba(0, 0, 0, 0.55),
        0 0 0 6px rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 9%;
    animation: popIn 0.4s ease-out;
}

.disc-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 8px;
}

.disc-logo-icon {
    width: 42px;
    height: 32px;
    flex-shrink: 0;
}

.disc-logo-text {
    font-size: 1.7rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.5px;
}

.disc-sub {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.92);
    margin-bottom: 20px;
    line-height: 1.4;
    max-width: 230px;
}

.disc-question {
    font-size: 1.18rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.45;
    margin-bottom: 22px;
    max-width: 300px;
}

.disc-confirm {
    display: block;
    width: 100%;
    max-width: 260px;
    padding: 15px 0;
    font-size: 1.15rem;
    font-weight: 700;
    color: #0e8496;
    background: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.disc-confirm:hover {
    transform: translateY(-2px);
    background: #f3fdff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.disc-step {
    font-size: 0.95rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    margin-top: 18px;
}

.disc-leave {
    margin-top: 6px;
}

.disc-leave span {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: underline;
    cursor: pointer;
    transition: color 0.2s;
}

.disc-leave span:hover {
    color: #fff;
}

@keyframes popIn {
    0% { opacity: 0; transform: scale(0.9); }
    100% { opacity: 1; transform: scale(1); }
}

/* ===================== */
/* Content (below hero)  */
/* ===================== */
.content {
    position: relative;
    z-index: 2;
    background:
        linear-gradient(180deg, #0c0710 0%, #140a1c 100%);
    padding: 60px 20px 80px;
}

article {
    max-width: 820px;
    margin: 0 auto;
    line-height: 1.8;
}

article h1 {
    font-size: 2.1rem;
    margin-bottom: 22px;
    background: linear-gradient(135deg, var(--jr-pink), var(--jr-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.25;
}

article h2 {
    font-size: 1.55rem;
    margin: 38px 0 16px;
    color: var(--jr-pink);
}

article h3 {
    font-size: 1.2rem;
    margin: 26px 0 12px;
    color: #ff8fb4;
}

article p {
    margin-bottom: 16px;
    color: #c9c2d4;
}

article strong {
    color: #fff;
}

article ul, article ol {
    margin: 16px 0;
    padding-left: 24px;
}

article li {
    margin-bottom: 8px;
    color: #c9c2d4;
}

article a {
    color: var(--jr-cyan);
}

article table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

article th, article td {
    padding: 12px;
    border: 1px solid #3a2350;
    text-align: left;
}

article th {
    background: #2a0f3a;
    color: #fff;
}

article td {
    color: #c9c2d4;
}

article tr:first-child td {
    background: #2a0f3a;
    color: #fff;
    font-weight: 700;
}

/* Footer */
.site-footer {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 28px 20px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
    background: #0c0710;
    border-top: 1px solid rgba(255, 45, 120, 0.15);
}

/* ===================== */
/* Responsive            */
/* ===================== */
@media screen and (max-width: 600px) {
    .navbar { padding: 12px 16px; }
    .nav-logo { font-size: 1.1rem; }
    .nav-right { gap: 8px; }
    .lang-full { display: none; }
    .lang-short { display: inline; }
    .lang-menu > summary { padding: 7px 11px; font-size: 0.8rem; }
    .lang-dropdown { width: min(78vw, 260px); }
    .nav-login { padding: 7px 13px; font-size: 0.82rem; }
    .disc-content { padding: 0 11%; }
    .disc-logo-text { font-size: 1.4rem; }
    .disc-logo-icon { width: 36px; height: 28px; }
    .disc-sub { font-size: 0.8rem; margin-bottom: 18px; }
    .disc-question { font-size: 1.08rem; margin-bottom: 20px; }
    .disc-confirm { padding: 13px 0; font-size: 1.02rem; }
    .disc-step { margin-top: 16px; }
    article h1 { font-size: 1.7rem; }
    article h2 { font-size: 1.35rem; }
    .content { padding: 44px 16px 60px; }
}
