:root {
    --accent: #b45309;
    --highlight: #fbbf24;
    --bg-dark: #0f172a;
    --panel-bg: rgba(30, 20, 10, 0.85);
    --gold: #f59e0b;
    --border-color: #78350f;
    --text-main: #fef3c7;
    --gem-slot: #1a120b;
    --success: #2ecc71;
}

body {
    font-family: Arial, sans-serif;
    background: #111;
    color: var(--text-main);
    margin: 0;
    padding: 0;
    display: flex;
    height: 100vh;
    overflow: hidden;
    box-sizing: border-box;
}

.page-wrapper {
    display: flex;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

/* --- SEARCH BAR --- */
.search-box {
    padding: 5px 5px 15px 5px;
    border-bottom: 1px solid #444;
    margin-bottom: 10px;
}

.search-box input {
    width: 100%;
    padding: 8px;
    box-sizing: border-box;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    background: #222;
    color: var(--text-main);
    font-size: 0.9em;
}

/* --- LEFT SIDEBAR --- */
.sidebar-left {
    width: 220px;
    background: #181818;
    border-right: 2px solid var(--border-color);
    overflow-y: auto;
    padding: 15px 10px;
    box-sizing: border-box;
    flex-shrink: 0;
}

.sidebar-heading {
    font-size: 1.05em;
    font-weight: bold;
    color: var(--highlight);
    margin: 8px 0 12px 5px;
    text-transform: uppercase;
    border-bottom: 1px solid #444;
    padding-bottom: 3px;
}

.sidebar-subheading {
    font-size: 0.85em;
    font-weight: bold;
    color: #aaa;
    margin: 10px 0 4px 8px;
    padding-bottom: 2px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.nav-btn {
    display: block;
    width: 100%;
    background: none;
    border: none;
    color: #bbb;
    text-align: left;
    padding: 6px 10px;
    margin: 2px 0;
    font-size: 0.88em;
    cursor: pointer;
    border-radius: 4px;
    box-sizing: border-box;
}
.nav-btn:hover { background: #2a2a2a; color: #fff; }
.nav-btn.active {
    border-left: 3px solid var(--highlight);
    background: #222;
    color: #fff;
}

/* --- MAIN CONTENT --- */
.main-content {
    flex: 1;
    overflow-y: auto;
    padding: 30px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-right: 280px;
}
.main-content h1 {
    margin-top: 0;
    color: #fff;
    width: 100%;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

/* --- BOSS CARDS --- */
.item {
    border: 2px solid var(--border-color);
    margin: 20px 0;
    padding: 20px;
    border-radius: 8px;
    background: var(--panel-bg);
    width: 100%;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
    font-size: 1.3rem;
    font-weight: normal;
}
.item h2 {
    margin: 0 0 12px 0;
    color: var(--highlight);
    font-size: 2.15em;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 6px;
}

.enemy-section { display: none; width: 100%; }
.enemy-section.active { display: block; }

/* --- LIGHTBOX --- */
.lightbox-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
}
.lightbox-overlay.open { display: flex; }
.lightbox-overlay img {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 8px;
    border: 2px solid var(--border-color);
    box-shadow: 0 0 40px rgba(0,0,0,0.8);
    cursor: default;
}
.lightbox-close {
    position: absolute;
    top: 18px;
    right: 24px;
    font-size: 2em;
    color: #fff;
    cursor: pointer;
    line-height: 1;
    opacity: 0.8;
}
.lightbox-close:hover { opacity: 1; }

.item img {
    cursor: zoom-in;
    transition: opacity 0.15s, transform 0.15s;
}
.item img:hover { opacity: 0.85; transform: scale(1.04); }

/* --- RIGHT SIDEBAR --- */
.sidebar-right {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100vh;
    background: var(--panel-bg);
    border-left: 2px solid var(--border-color);
    padding: 20px;
    box-sizing: border-box;
    overflow-y: auto;
    box-shadow: -5px 5px 15px rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    z-index: 100;
}
.sidebar-right h3 {
    color: var(--highlight);
    text-transform: uppercase;
    font-size: 18px;
    border-bottom: 2px solid var(--accent);
    padding-bottom: 10px;
    margin-top: 0;
    text-align: center;
}
.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.sidebar-nav button {
    width: 100%;
    background: var(--gem-slot);
    border: 1px solid var(--highlight);
    color: var(--highlight);
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    text-transform: uppercase;
    transition: 0.2s;
    text-align: left;
}
.sidebar-nav button:hover {
    background: var(--accent);
    color: white;
}

/* --- HAMBURGER --- */
.hamburger {
    display: none;
    position: fixed;
    top: 12px;
    right: 12px;
    z-index: 200;
    background: var(--gem-slot);
    border: 2px solid var(--highlight);
    color: var(--highlight);
    font-size: 22px;
    width: 44px;
    height: 44px;
    border-radius: 6px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

/* --- THEMED SCROLLBARS --- */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: rgba(0,0,0,0.3); }
::-webkit-scrollbar-thumb { background-color: var(--border-color); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background-color: var(--gold); }

/* --- RESPONSIVE --- */
@media (max-width: 1550px) {
    .hamburger { display: flex; }
    .main-content { margin-right: 0; }
    .sidebar-right {
        display: none;
        position: fixed;
        top: 0;
        right: 0;
        width: 75vw;
        max-width: 300px;
        height: 100vh;
        z-index: 150;
    }
    .sidebar-right.open { display: flex; }
    .nav-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.5);
        z-index: 140;
    }
    .nav-overlay.open { display: block; }
}

@media (max-width: 900px) {
    body { overflow: auto; height: auto; }
    .page-wrapper { flex-direction: column; height: auto; overflow: visible; }
    .sidebar-left {
        width: 100%;
        height: auto;
        max-height: 220px;
        border-right: none;
        border-bottom: 2px solid var(--border-color);
        overflow-x: auto;
        overflow-y: auto;
    }
    .main-content { height: auto; overflow: visible; padding: 16px; margin-right: 0; }
    .item { padding: 14px; margin: 12px 0; }
}

@media (max-width: 600px) {
    .main-content { padding: 10px 6px; }
    .main-content h1 { font-size: 1.3em; }
    .item { padding: 10px; }
    .nav-btn { font-size: 0.82em; padding: 5px 8px; }
}
.sidebar-subheading {
    font-size: 0.85em;
    font-weight: bold;
    color: var(--highlight); /* Changed from #aaa to highlight color */
    margin: 10px 0 4px 8px;
    padding-bottom: 2px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
