: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;
}
.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: stretch;
    margin-right: 280px;
}
.main-content h1 {
    margin-top: 0;
    color: #fff;
    width: 100%;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

/* --- INFO SECTIONS --- */
.guide-section { 
    display: none;
    width: 100%; 
}
.guide-section.active { 
    display: block; 
}

.guide-card {
    border: 2px solid var(--border-color);
    margin: 0 0 24px 0;
    padding: 24px;
    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: 1rem;
    font-weight: normal;
    line-height: 1.7;
}
.guide-card h2 {
    margin: 0 0 6px 0;
    color: var(--highlight);
    font-size: 1.6em;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 8px;
}
.guide-card h3 {
    color: var(--gold);
    font-size: 1.1em;
    margin: 20px 0 6px 0;
    border-left: 3px solid var(--accent);
    padding-left: 10px;
}
.guide-card h4 {
    color: #ffd8a8;
    font-size: 0.95em;
    margin: 14px 0 4px 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.guide-card p {
    margin: 0 0 10px 0;
    color: var(--text-main);
}
.guide-card ul {
    margin: 6px 0 12px 0;
    padding-left: 22px;
}
.guide-card ul li {
    margin-bottom: 4px;
}
.guide-intro {
    font-style: italic;
    color: #ffd8a8;
    margin-bottom: 14px;
    font-size: 0.95em;
}
.tip-box {
    background: rgba(180, 83, 9, 0.12);
    border-left: 3px solid var(--gold);
    padding: 10px 14px;
    margin: 12px 0;
    border-radius: 0 6px 6px 0;
    font-size: 0.9em;
    color: #ffd8a8;
}
.step-block {
    background: rgba(0,0,0,0.25);
    border: 1px solid rgba(120,53,15,0.4);
    border-radius: 6px;
    padding: 14px 18px;
    margin: 10px 0;
}
.step-block strong {
    color: var(--highlight);
}

/* --- TABLES --- */
.guide-card table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85em;
    margin: 10px 0 16px 0;
}
.guide-card table th {
    background: rgba(120, 53, 15, 0.35);
    color: var(--highlight);
    padding: 7px 10px;
    text-align: left;
    border: 1px solid #444;
    text-transform: uppercase;
    font-size: 0.82em;
    letter-spacing: 0.04em;
}
.guide-card table td {
    padding: 6px 10px;
    border: 1px solid #333;
    color: var(--text-main);
}
.guide-card table tr:nth-child(even) td {
    background: rgba(255,255,255,0.03);
}
.guide-card table tr:hover td {
    background: rgba(180, 83, 9, 0.08);
}

/* --- 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; 
    }
    .guide-card { 
        padding: 14px; 
        margin-bottom: 14px; 
    }
}

@media (max-width: 600px) {
    .main-content { padding: 10px 6px; }
    .main-content h1 { font-size: 1.3em; }
    .guide-card { padding: 10px; }
    .nav-btn { font-size: 0.82em; padding: 5px 8px; }
}
