/* ═══════════════════════════════════════════════════════════
   Dragon Ball Online Galaxy – Patch Notes  |  style.css
   Dark theme with Dragon Ball gold + red accents
   ═══════════════════════════════════════════════════════════ */

/* ── Variables ──────────────────────────────────────────── */
:root {
    --bg-body:       #0d1117;
    --bg-sidebar:    #131921;
    --bg-content:    #161b22;
    --bg-card:       #1c2333;
    --bg-hover:      #21262d;
    --bg-active:     #1f2a3a;

    --text:          #e6edf3;
    --text-dim:      #8b949e;
    --text-muted:    #6e7681;

    --accent:        #e94560;
    --accent-soft:   rgba(233, 69, 96, .15);
    --gold:          #ffd700;
    --gold-soft:     rgba(255, 215, 0, .12);
    --blue:          #58a6ff;

    --border:        #30363d;
    --radius:        8px;
    --sidebar-w:     310px;
    --header-h:      64px;
    --transition:    .2s ease;
}

/* ── Reset ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
    height: 100%;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: var(--bg-body);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* ── Scrollbar ──────────────────────────────────────────── */
::-webkit-scrollbar       { width: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ╔═══════════════════════════════════════════════════════╗
   ║  HEADER                                              ║
   ╚═══════════════════════════════════════════════════════╝ */
#header {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--header-h);
    z-index: 100;
    background: var(--bg-sidebar);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
}
.header-inner {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.header-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}
.header-logo {
    height: 40px;
    width: auto;
    border-radius: 6px;
}
.header-brand h1 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: .3px;
}
.header-sub {
    font-size: .78rem;
    color: var(--text-dim);
    display: block;
    margin-top: -2px;
}
.header-count {
    background: var(--accent-soft);
    color: var(--accent);
    font-size: .78rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    white-space: nowrap;
}

/* ╔═══════════════════════════════════════════════════════╗
   ║  LAYOUT                                              ║
   ╚═══════════════════════════════════════════════════════╝ */
.layout {
    display: flex;
    height: calc(100vh - var(--header-h));
    margin-top: var(--header-h);
}

/* ╔═══════════════════════════════════════════════════════╗
   ║  SIDEBAR                                             ║
   ╚═══════════════════════════════════════════════════════╝ */
.sidebar {
    width: var(--sidebar-w);
    min-width: var(--sidebar-w);
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* search */
.search-wrap {
    padding: 14px 16px 10px;
    position: relative;
    flex-shrink: 0;
}
.search-icon {
    position: absolute;
    left: 28px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px; height: 16px;
    color: var(--text-muted);
    pointer-events: none;
}
#searchInput {
    width: 100%;
    padding: 9px 12px 9px 38px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-size: .88rem;
    outline: none;
    transition: border var(--transition);
}
#searchInput::placeholder { color: var(--text-muted); }
#searchInput:focus { border-color: var(--accent); }

/* nav list */
.nav-list {
    flex: 1;
    overflow-y: auto;
    padding: 4px 10px 20px;
}

/* year separator */
.nav-year {
    font-size: .72rem;
    font-weight: 700;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 16px 8px 6px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 4px;
}

/* nav item */
.nav-item {
    display: flex;
    flex-direction: column;
    padding: 10px 12px;
    margin: 2px 0;
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--text);
    cursor: pointer;
    transition: background var(--transition);
    position: relative;
}
.nav-item:hover {
    background: var(--bg-hover);
}
.nav-item.active {
    background: var(--bg-active);
    border-left: 3px solid var(--accent);
    padding-left: 9px;
}
.nav-label {
    font-size: .88rem;
    font-weight: 600;
    line-height: 1.3;
}
.nav-date {
    font-size: .75rem;
    color: var(--text-muted);
    margin-top: 2px;
}
.nav-badge {
    position: absolute;
    top: 10px; right: 10px;
    background: var(--accent);
    color: #fff;
    font-size: .62rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 10px;
    letter-spacing: .5px;
}

/* ╔═══════════════════════════════════════════════════════╗
   ║  CONTENT AREA                                        ║
   ╚═══════════════════════════════════════════════════════╝ */
.content {
    flex: 1;
    overflow-y: auto;
    background: var(--bg-body);
}
.content-inner {
    max-width: 860px;
    margin: 0 auto;
    padding: 32px 40px 60px;
}

/* welcome screen */
.welcome {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-muted);
}
.welcome-img {
    max-width: 340px;
    width: 80%;
    margin-bottom: 24px;
    opacity: .7;
    border-radius: 12px;
}
.welcome p { font-size: 1rem; }

/* loading spinner */
.loading {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}
.spinner {
    width: 32px; height: 32px;
    border: 3px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    margin: 0 auto 16px;
    animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* error */
.error-msg {
    text-align: center;
    padding: 40px;
    color: var(--accent);
    font-weight: 600;
}

/* ╔═══════════════════════════════════════════════════════╗
   ║  PATCH NOTE CONTENT STYLING                          ║
   ╚═══════════════════════════════════════════════════════╝ */
.content-inner .date {
    color: var(--text-dim);
    font-size: .9rem;
    margin-bottom: 8px;
}

.content-inner h1 {
    font-size: 1.65rem;
    font-weight: 700;
    color: var(--gold);
    border-bottom: 3px solid var(--accent);
    padding-bottom: 12px;
    margin-bottom: 24px;
    line-height: 1.35;
}

.content-inner h2 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text);
    margin-top: 28px;
    margin-bottom: 12px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--border);
}

.content-inner h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text);
    margin-top: 22px;
    margin-bottom: 10px;
}

.content-inner ul {
    padding-left: 22px;
    margin-bottom: 8px;
}

.content-inner li {
    margin-bottom: 8px;
    color: var(--text);
    line-height: 1.55;
}

.content-inner li::marker {
    color: var(--accent);
}

.content-inner p {
    margin-bottom: 10px;
}

.content-inner strong, .content-inner b {
    color: #fff;
    font-weight: 600;
}

.content-inner a {
    color: var(--blue);
    text-decoration: none;
}
.content-inner a:hover {
    text-decoration: underline;
}

/* team notes box */
.content-inner .team-note {
    background: var(--bg-card);
    border-left: 4px solid var(--gold);
    padding: 16px 20px;
    margin-top: 24px;
    border-radius: 0 var(--radius) var(--radius) 0;
    color: var(--text-dim);
    line-height: 1.6;
}

/* patch images */
.content-inner .patch-image {
    margin: 20px 0;
    text-align: center;
}
.content-inner .patch-image img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

/* generic images in content */
.content-inner img:not(.welcome-img) {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius);
}

/* ╔═══════════════════════════════════════════════════════╗
   ║  MOBILE SIDEBAR TOGGLE                               ║
   ╚═══════════════════════════════════════════════════════╝ */
.sidebar-toggle {
    display: none;          /* hidden on desktop */
    position: fixed;
    bottom: 20px; left: 20px;
    z-index: 200;
    width: 48px; height: 48px;
    border: none;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(233, 69, 96, .4);
    transition: transform var(--transition), background var(--transition);
}
.sidebar-toggle svg { width: 22px; height: 22px; }
.sidebar-toggle:hover { background: #d13350; transform: scale(1.05); }

.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 149;
    background: rgba(0,0,0,.55);
}

/* ╔═══════════════════════════════════════════════════════╗
   ║  RESPONSIVE                                          ║
   ╚═══════════════════════════════════════════════════════╝ */
@media (max-width: 860px) {
    .sidebar {
        position: fixed;
        top: var(--header-h);
        left: 0;
        bottom: 0;
        z-index: 150;
        transform: translateX(-100%);
        transition: transform .25s ease;
    }
    .sidebar.open {
        transform: translateX(0);
    }
    .sidebar-overlay.open {
        display: block;
    }
    .sidebar-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .content-inner {
        padding: 24px 18px 50px;
    }
    .header-brand h1 { font-size: 1rem; }
    .header-logo      { height: 32px; }
}

@media (max-width: 480px) {
    .content-inner h1 { font-size: 1.3rem; }
    .content-inner h2 { font-size: 1.05rem; }
    :root { --sidebar-w: 280px; }
}

/* ==========================================================
   LIGHT THEME OVERRIDE
   Paste this at the VERY END of style.css
   Do NOT delete the old CSS
   ========================================================== */

:root {
    --bg-body:       #ffffff;
    --bg-sidebar:    #ffffff;
    --bg-content:    #ffffff;
    --bg-card:       #f6f8fc;
    --bg-hover:      #eef4ff;
    --bg-active:     #fff1f4;

    --text:          #2f3542;
    --text-dim:      #5f6b7a;
    --text-muted:    #8a95a6;

    --accent:        #e94560;
    --accent-soft:   rgba(233, 69, 96, .10);
    --gold:          #d69a00;
    --gold-soft:     rgba(255, 193, 7, .18);
    --blue:          #2484d6;

    --border:        #dfe5ef;
}

html,
body,
.layout,
.content,
.content-inner {
    background: #ffffff;
    color: var(--text);
}

#header {
    background: #ffffff;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 4px 16px rgba(20, 30, 50, .08);
}

.header-brand h1 {
    color: #263044;
}

.header-sub,
.content-inner .date {
    color: var(--text-dim);
}

.sidebar {
    background: #ffffff;
    border-right: 1px solid var(--border);
}

#searchInput {
    background: #f7f9fd;
    border: 1px solid var(--border);
    color: var(--text);
}

.nav-item {
    color: var(--text);
}

.nav-item:hover {
    background: var(--bg-hover);
}

.nav-item.active {
    background: linear-gradient(90deg, rgba(233, 69, 96, .13), rgba(255, 255, 255, 0));
    border-left: 3px solid var(--accent);
}

.nav-label {
    color: var(--text);
}

.nav-date {
    color: var(--text-muted);
}

.content-inner h1,
.content-inner h2,
.content-inner h3 {
    color: #263044;
}

.content-inner h1 {
    border-bottom: 3px solid var(--accent);
}

.content-inner h2 {
    border-bottom: 1px solid var(--border);
}

.content-inner p,
.content-inner li {
    color: var(--text);
}

.content-inner strong,
.content-inner b {
    color: #111827;
}

.content-inner .team-note {
    background: linear-gradient(180deg, #fff9df, #fff4c2);
    border-left: 4px solid #f0b400;
    color: #3f4654;
    box-shadow: 0 4px 14px rgba(180, 140, 0, .12);
}

.content-inner .patch-image img,
.content-inner img:not(.welcome-img) {
    border: 1px solid var(--border);
    background: #ffffff;
    box-shadow: 0 6px 18px rgba(20, 30, 50, .10);
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}