/* ============================================
   Owl4Games — Static Site Stylesheet
   ============================================ */

/* ---------- Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@500;600;700;800&family=Nunito+Sans:ital,wght@0,400;0,600;0,700;0,800;1,400&display=swap');

/* ---------- Design Tokens ---------- */
:root {
    --purple-darkest: #1a0533;
    --purple-dark: #24034c;
    --purple-mid: #3d0d6b;
    --purple-bright: #7016b0;
    --purple-accent: #a81fd4;
    --purple-glow: #c878ff;

    --text-light: #ffffff;
    --text-soft: #d8c8ee;

    --content-width: 1320px;
    --header-height: 88px;

    --font-display: 'Baloo 2', cursive;
    --font-body: 'Nunito Sans', sans-serif;
}

/* ---------- Reset ---------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

html, body {
    min-height: 100vh;
}

body {
    font-family: var(--font-body);
    background-color: var(--purple-dark);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

/* content area grows to push footer to the bottom */
.content {
    flex: 1 0 auto;
}

.site-footer {
    flex-shrink: 0;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

/* ============================================
   HEADER / NAVIGATION
   ============================================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 999;
    background: linear-gradient(120deg,
        var(--purple-darkest) 0%,
        var(--purple-mid) 45%,
        var(--purple-bright) 75%,
        var(--purple-accent) 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 1px 12px rgba(180, 120, 255, 0.35);
}

.nav-container {
    max-width: 100%;
    margin: 0 auto;
    height: var(--header-height);
    padding: 0 5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-logo {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.9rem;
    color: var(--text-light);
    letter-spacing: 0.5px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
    transition: transform 0.25s ease;
}

.site-logo:hover {
    transform: scale(1.04);
}

/* Desktop nav links */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    list-style: none;
}

.nav-menu a {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.4rem;
    letter-spacing: 1px;
    color: var(--text-light);
    text-shadow: 0 0 6px rgba(255, 255, 255, 0.5);
    transition: text-shadow 0.25s ease, transform 0.25s ease;
    display: inline-block;
}

.nav-menu a:hover {
    text-shadow: 0 0 14px rgba(255, 255, 255, 0.95),
                 0 0 28px rgba(220, 150, 255, 0.7);
    transform: scale(1.08);
}

/* Active page highlight */
.nav-menu a.active {
    text-shadow: 0 0 16px rgba(255, 255, 255, 1),
                 0 0 32px rgba(220, 150, 255, 0.9);
    transform: scale(1.05);
}

/* Hamburger (hidden on desktop) */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    display: block;
    width: 28px;
    height: 3px;
    background: var(--text-light);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* ============================================
   HERO / BANNER (homepage)
   ============================================ */
.hero {
    position: relative;
    width: 100%;
    line-height: 0;
}

.hero img {
    width: 100%;
    height: auto;
    display: block;
}

/* PLAY NOW button — floats over bottom of banner */
.play-now {
    position: absolute;
    bottom: 6%;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.85rem;
    letter-spacing: 1.5px;
    color: var(--text-light);
    background: linear-gradient(180deg, var(--purple-accent) 0%, var(--purple-bright) 100%);
    padding: 2.2rem 3.8rem;
    border-radius: 50px;
    box-shadow: 0 5px 24px rgba(160, 32, 224, 0.6);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    white-space: nowrap;
}

.play-now:hover {
    transform: translateX(-50%) scale(1.06);
    box-shadow: 0 6px 30px rgba(180, 60, 255, 0.85);
}

/* ============================================
   CONTENT SECTIONS
   ============================================ */
.content {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 4rem 2rem 5rem;
}

.section-title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 2rem;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
    text-shadow: 0 0 12px rgba(200, 120, 255, 0.4);
}

.game-intro p {
    font-size: 1.15rem;
    color: var(--text-soft);
    margin-bottom: 1.2rem;
    max-width: 100%;
}

/* ============================================
   ABOUT PAGE
   ============================================ */
.about-section {
    margin-bottom: 3.5rem;
}

.about-section p {
    font-size: 1.15rem;
    color: var(--text-soft);
    max-width: 1000px;
}

.about-section a.mail,
.about-section strong {
    color: var(--text-light);
    font-weight: 700;
}

.legal-links {
    margin-top: 3rem;
}

.legal-links a {
    display: inline-block;
    font-size: 1.05rem;
    color: var(--text-light);
    text-decoration: underline;
    text-underline-offset: 3px;
    margin-bottom: 0.6rem;
    transition: color 0.2s ease;
}

.legal-links a:hover {
    color: var(--purple-glow);
}

/* Legal page body text */
.legal-body h2 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    margin: 2rem 0 0.8rem;
    color: var(--text-light);
}

.legal-body p {
    color: var(--text-soft);
    margin-bottom: 1rem;
    max-width: 1000px;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: linear-gradient(120deg,
        var(--purple-darkest) 0%,
        var(--purple-mid) 60%,
        var(--purple-bright) 100%);
    text-align: center;
    padding: 1.8rem 1rem;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    color: var(--text-soft);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

/* ============================================
   RESPONSIVE — MOBILE
   ============================================ */
@media (max-width: 768px) {
    :root {
        --header-height: 70px;
    }

    .nav-container {
        padding: 0 1.2rem;
    }

    .site-logo {
        font-size: 1.5rem;
    }

    /* show hamburger, hide inline menu */
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        background: var(--purple-darkest);
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.35s ease;
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    }

    .nav-menu.open {
        max-height: 300px;
    }

    .nav-menu li {
        width: 100%;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
    }

    .nav-menu a {
        display: block;
        width: 100%;
        padding: 1rem 1.5rem;
        font-size: 1.2rem;
        color: var(--text-light) !important;
    }

    /* hamburger -> X animation when open */
    .nav-toggle.open span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .nav-toggle.open span:nth-child(2) {
        opacity: 0;
    }
    .nav-toggle.open span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .play-now {
        font-size: 1.1rem;
        padding: 0.6rem 1.8rem;
        bottom: 5%;
    }

    .content {
        padding: 2.5rem 1.2rem 3.5rem;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .game-intro p,
    .about-section p,
    .legal-body p {
        font-size: 1.05rem;
    }
}
