/* ================================================================
   Reelster – Shared site styles
   ================================================================ */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background: #000;
    color: #fff;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

/* ── Grain overlay ─────────────────────────────────────────────── */
.grain {
    position: fixed; inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.04'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 0;
}

/* ── Bottom bar (shared across all pages) ──────────────────────── */
.bottom-bar {
    position: relative;
    z-index: 3;
    padding: 1.2rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.bottom-bar span,
.bottom-bar a {
    font-size: .7rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: rgba(255,255,255,.50);
    text-decoration: none;
    transition: color .3s ease;
}
.bottom-bar a:hover { color: rgba(255,255,255,.5); }
.bottom-links { display: flex; gap: 1.5rem; }

/* ── Animations ────────────────────────────────────────────────── */
@keyframes pulse {
    0%, 100% { scale: 1; opacity: .6; }
    50%      { scale: 1.25; opacity: 1; }
}
@keyframes logoIn {
    from { opacity: 0; scale: .8; }
    to   { opacity: 1; scale: 1; }
}
@keyframes fadeUp {
    from { opacity: 0; translate: 0 12px; }
    to   { opacity: 1; translate: 0 0; }
}

/* ================================================================
   HOME PAGE
   ================================================================ */
body.home {
    overflow: hidden;
    height: 100dvh;
    cursor: default;
}

.glow {
    position: fixed;
    top: 50%; left: 50%;
    translate: -50% -50%;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(255,45,85,.12) 0%, transparent 70%);
    pointer-events: none;
    animation: pulse 6s ease-in-out infinite;
}

.stage {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100dvh;
    text-align: center;
    padding: 2rem;
}

.logo {
    width: clamp(180px, 35vw, 340px);
    opacity: 0;
    animation: logoIn 1.8s cubic-bezier(.16,1,.3,1) .3s forwards;
    filter: drop-shadow(0 0 60px rgba(255,45,85,.25));
    transition: filter .4s ease;
}
.logo:hover {
    filter: drop-shadow(0 0 90px rgba(255,45,85,.5));
}

.tagline {
    margin-top: 2.5rem;
    font-size: clamp(.85rem, 1.6vw, 1.1rem);
    letter-spacing: .35em;
    text-transform: uppercase;
    color: rgba(255,255,255,.50);
    opacity: 0;
    animation: fadeUp .8s ease .9s forwards;
}

.store-links {
    margin-top: 3rem;
    display: flex;
    gap: 2rem;
    opacity: 0;
    animation: fadeUp .8s ease 1.4s forwards;
}
.store-links a {
    color: rgba(255,255,255,.3);
    text-decoration: none;
    font-size: .8rem;
    letter-spacing: .15em;
    text-transform: uppercase;
    transition: color .3s ease;
}
.store-links a:hover { color: #FF2D55; }

body.home .bottom-bar {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    opacity: 0;
    animation: fadeUp .6s ease 2s forwards;
}

/* ================================================================
   SUB-PAGES (privacy, terms, etc.)
   ================================================================ */
body.subpage {
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    color: rgba(255,255,255,.7);
}

.top-bar {
    position: relative;
    z-index: 1;
    padding: 1.5rem 2rem;
}
.top-bar a {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    text-decoration: none;
    color: rgba(255,255,255,.3);
    font-size: .75rem;
    letter-spacing: .15em;
    text-transform: uppercase;
    transition: color .3s ease;
}
.top-bar a:hover { color: rgba(255,255,255,.6); }
.top-bar img {height: 50px;}

.page-content {
    position: relative;
    z-index: 1;
    flex: 1;
    max-width: 680px;
    margin: 0 auto;
    padding: 2rem 2rem 4rem;
    width: 100%;
}
.page-content h1 {
    color: #fff;
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 700;
    letter-spacing: .02em;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255,255,255,.06);
}

.page-body {
    font-size: .95rem;
    line-height: 1.8;
    color: rgba(255,255,255,.55);
}
.page-body h2, .page-body h3, .page-body h4, .page-body h5, .page-body h6 {
    color: rgba(255,255,255,.8);
    margin-top: 2rem;
    margin-bottom: .75rem;
}
.page-body a {
    color: #FF2D55;
    text-decoration: none;
    transition: color .2s ease;
}
.page-body a:hover { color: #ff5a7d; }
.page-body ul, .page-body ol { padding-left: 1.2rem; }
.page-body li { margin-bottom: .4rem; }
.page-body p { margin-bottom: 1rem; }
.empty-notice {
    color: rgba(255,255,255,.2);
    font-style: italic;
}

body.subpage .bottom-bar { margin-top: auto; }

/* ================================================================
   MAINTENANCE PAGE
   ================================================================ */
body.maintenance {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100dvh;
}

.maintenance-card {
    position: relative;
    z-index: 2;
    background-color: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.06);
    border-radius: 1rem;
    padding: 3rem;
    max-width: 540px;
    text-align: center;
}
.maintenance-card h1 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: .75rem;
}
.maintenance-card p {
    color: rgba(255,255,255,.4);
    margin: 0;
}
.maintenance-icon {
    font-size: 3rem;
    color: #FF2D55;
    margin-bottom: 1.5rem;
    display: block;
}
