/* ============================================================
   style.css — Reincarnation Hub — Shared Stylesheet
   All pages link to this file. Page-specific styles stay
   in each file's own <style> block.
   ============================================================ */

/* ----------------------------------------------------------
   1. CSS Custom Properties
   ---------------------------------------------------------- */
:root {
    /* Colors */
    --primary-accent: #40c4ff;
    --bg-color: #0b101a;
    --nav-bg: rgba(11, 16, 26, 0.75);
    --text-color: #ffffff;
    --text-muted: #a1a9b4;

    /* Fonts */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Noto Sans', sans-serif;

    /* Surfaces / Borders */
    --table-border: rgba(255, 255, 255, 0.05);
    --glass-bg: rgba(25, 30, 40, 0.6);
    --glass-border: rgba(255, 255, 255, 0.05);
    --glass-blur: 16px;

    /* Scrollbar */
    --scroll-thumb: rgba(64, 196, 255, 0.3);
    --scroll-thumb-hover: rgba(64, 196, 255, 0.5);

    /* Balance patch note colors */
    --buff-color: #00ff9d;
    --nerf-color: #ff3c3c;
    --balance-color: #40c4ff;
}

/* ----------------------------------------------------------
   2. Global Reset
   ---------------------------------------------------------- */
*, *::before, *::after {
    box-sizing: border-box;
}

/* ----------------------------------------------------------
   3. Body Base
   ---------------------------------------------------------- */
body {
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
    background-image:
        radial-gradient(circle at 30% 30%, rgba(64, 196, 255, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 70% 70%, rgba(255, 255, 255, 0.05) 0%, transparent 40%),
        radial-gradient(circle at center, #1b263b 0%, #0b101a 100%);
    background-attachment: fixed;
    min-height: 100vh;
    color: var(--text-color);
    font-family: var(--font-body);
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* ----------------------------------------------------------
   4. Scrollbar
   ---------------------------------------------------------- */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}

::-webkit-scrollbar-thumb {
    background: var(--scroll-thumb);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--scroll-thumb-hover);
}

/* ----------------------------------------------------------
   5. Navbar
   ---------------------------------------------------------- */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    height: 70px;
    background: var(--nav-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 60px;
    box-sizing: border-box;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.3s ease;
}

.nav-logo {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: #fff;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.nav-logo span {
    color: var(--primary-accent);
}

.nav-links {
    display: flex;
    gap: 40px;
    align-items: center;
}

.nav-link {
    color: #e0e5ed;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding: 25px 0;
    transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #fff;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background-color: var(--primary-accent);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-dropdown {
    position: relative;
    display: flex;
    align-items: center;
    height: 100%;
}

.dropdown-content {
    visibility: hidden;
    pointer-events: none;
    position: absolute;
    background: rgba(11, 16, 26, 0.95);
    min-width: 160px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 10px 0;
    z-index: 1001;
    top: calc(100% + 4px);
    left: 50%;
    transform: translateX(-50%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    opacity: 0;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.nav-dropdown:hover .dropdown-content {
    visibility: visible;
    pointer-events: auto;
    opacity: 1;
}

.dropdown-content a {
    color: #e0e5ed;
    padding: 12px 20px;
    text-decoration: none;
    display: block;
    font-size: 0.9rem;
    text-align: center;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.2s ease;
}

.dropdown-content a:hover {
    color: #ffffff;
    background: rgba(64, 196, 255, 0.12);
}

/* ----------------------------------------------------------
   6. Hamburger Menu Button
   ---------------------------------------------------------- */
.nav-hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 26px;
    height: 18px;
    cursor: pointer;
    padding: 0;
    background: none;
    border: none;
    z-index: 1001;
    flex-shrink: 0;
}

.nav-hamburger span {
    display: block;
    height: 2px;
    width: 100%;
    background-color: #e0e5ed;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease, background-color 0.3s ease;
}

.nav-hamburger.open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
    background-color: var(--primary-accent);
}

.nav-hamburger.open span:nth-child(2) {
    opacity: 0;
}

.nav-hamburger.open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
    background-color: var(--primary-accent);
}

/* ----------------------------------------------------------
   7. Footer
   ---------------------------------------------------------- */
.footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 40px 0;
    text-align: center;
    background: #06090e;
    width: 100%;
    margin-top: auto;
}

.footer p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
}

/* ----------------------------------------------------------
   8. Floating Particles
   ---------------------------------------------------------- */
.particle {
    position: fixed;
    background-color: #fff;
    border-radius: 50%;
    opacity: 0.3;
    animation: float 20s infinite linear;
    z-index: 0;
    pointer-events: none;
}

@keyframes float {
    0%   { transform: translateY(0) translateX(0); opacity: 0; }
    10%  { opacity: 0.5; }
    90%  { opacity: 0.3; }
    100% { transform: translateY(-100vh) translateX(10vw); opacity: 0; }
}

/* ----------------------------------------------------------
   9. Fade-In Animation
   ---------------------------------------------------------- */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

.anim-fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

/* ----------------------------------------------------------
   10. Standard Page Wrapper
   ---------------------------------------------------------- */
.page-wrapper {
    padding-top: 120px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

/* ----------------------------------------------------------
   11. Section Headers (shared by index + content pages)
   ---------------------------------------------------------- */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 15px;
}

.section-divider {
    width: 80px;
    height: 4px;
    background-color: var(--primary-accent);
    margin: 0 auto;
}

/* ----------------------------------------------------------
   12. Mobile Responsive (≤ 768px)
   ---------------------------------------------------------- */
@media (max-width: 768px) {
    .navbar {
        padding: 0 24px;
    }

    .nav-hamburger {
        display: flex;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        align-items: flex-start;
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: rgba(11, 16, 26, 0.98);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        padding: 10px 0 24px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        gap: 0;
        z-index: 999;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-link {
        padding: 16px 32px;
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    }

    .nav-link::after {
        display: none;
    }

    .nav-dropdown {
        flex-direction: column;
        height: auto;
        width: 100%;
        align-items: flex-start;
    }

    .nav-dropdown > .nav-link {
        width: 100%;
    }

    .dropdown-content {
        position: static;
        visibility: visible;
        pointer-events: auto;
        opacity: 1;
        transform: none;
        left: auto;
        top: auto;
        border-radius: 0;
        border: none;
        border-top: 1px solid rgba(255, 255, 255, 0.04);
        background: rgba(6, 9, 14, 0.9);
        box-shadow: none;
        padding: 0;
        min-width: 100%;
        display: none;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .nav-dropdown.open .dropdown-content {
        display: block;
    }

    .dropdown-content a {
        padding: 14px 48px;
        text-align: left;
        font-size: 0.85rem;
    }

    .section-title {
        font-size: 2rem;
        letter-spacing: 2px;
    }
}
