:root {
    --bg-dark: #1a1a2e;
    --bg-panel: #16213e;
    --accent: #e94560;
    --accent-dark: #c73652;
    --text-light: #eee;
    --text-muted: #aaa;
}

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

html, body {
    font-family: 'Segoe UI', sans-serif;
    background: var(--bg-dark);
    color: var(--text-light);
}

.site-layout {
    display: flex;
    min-height: 100vh;
}

.site-sidebar {
    width: 220px;
    min-width: 220px;
    background: var(--bg-panel);
    border-right: 2px solid var(--accent);
    display: flex;
    flex-direction: column;
    gap: 28px;
    padding: 24px 18px;
}

.sidebar-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-sidebar .brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 18px;
    color: #fff;
    text-decoration: none;
}

.site-sidebar .brand img { height: 50px; }

.hamburger {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    padding: 4px 8px;
}

.site-sidebar nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.site-sidebar nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    padding: 10px 12px;
    border-radius: 8px;
    border-left: 3px solid transparent;
}

.site-sidebar nav a:hover { color: #fff; background: rgba(233, 69, 96, 0.12); }

.site-sidebar nav a.active {
    color: #fff;
    background: rgba(233, 69, 96, 0.18);
    border-left: 3px solid var(--accent);
}

.nav-category { display: flex; flex-direction: column; }

.cat-toggle {
    display: flex; align-items: center; justify-content: space-between;
    background: none; border: none; width: 100%; text-align: left;
    color: #fff; font-size: 13px; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.5px; padding: 10px 12px; cursor: pointer;
}

.cat-toggle .arrow { color: var(--text-muted); transition: transform 0.2s; font-size: 11px; }
.cat-toggle.open .arrow { transform: rotate(180deg); }

.cat-links {
    display: none;
    flex-direction: column;
    gap: 4px;
    padding-left: 8px;
}

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

.site-main {
    flex: 1;
    min-width: 0;
    overflow-x: hidden;
}

/* Tablet / mobile: sidebar becomes a top bar with hamburger menu */
@media (max-width: 768px) {
    .site-layout { flex-direction: column; }
    .site-sidebar {
        width: 100%;
        min-width: 0;
        border-right: none;
        border-bottom: 2px solid var(--accent);
        padding: 12px 16px;
        gap: 0;
    }
    .hamburger { display: block; }
    .site-sidebar nav {
        display: none;
        flex-direction: column;
        width: 100%;
        margin-top: 14px;
        gap: 4px;
    }
    .site-sidebar nav.open { display: flex; }
    .site-sidebar nav a { padding: 10px 12px; font-size: 14px; }
}

@media (max-width: 420px) {
    .site-sidebar .brand span { display: none; }
}
