@import url('https://fonts.googleapis.com/css2?family=Tektur:wght@400;500;600;700&display=swap');

:root {
    --bg-color: #202124;
    --text-color: #fff;
    --header-bg: #1a1a1c;
    --border-color: #444;
    --accent-color: #FFA3A3;
    --secondary-color: #ff0055;
    --dim-color: #888;
    --glass-bg: rgba(26, 26, 28, 0.95);
    --border-style: 1px solid var(--border-color);
    --sidebar-width: 280px;
}

* {
    box-sizing: border-box;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-color) var(--bg-color);
}

body {
    margin: 0;
    font-family: 'Tektur', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    height: 100vh;
    overflow: hidden;
}

input, button, select, textarea {
    font-family: 'Tektur', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
}

h1, h2, h3 {
    font-family: 'Tektur', sans-serif;
    color: var(--accent-color);
    text-transform: uppercase;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 5px;
}

/* Layout */
.container {
    display: grid;
    grid-template-columns: var(--sidebar-width) 1fr 350px;
    grid-template-rows: 60px 1fr 40px;
    height: 100vh;
    gap: 0;
}

/* Header */
.header {
    grid-column: 1 / -1;
    border-bottom: var(--border-style);
    background: var(--header-bg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    z-index: 10;
}

.logo {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--accent-color);
    text-transform: uppercase;
    margin-left: 50px;
}

/* Sidebar */
.sidebar {
    grid-row: 2 / 3;
    border-right: var(--border-style);
    background: var(--header-bg);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow-y: auto;
}

.nav-btn {
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-color);
    padding: 12px;
    text-align: left;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.9rem;
    border-radius: 4px;
}

.nav-btn:hover { background: rgba(255, 163, 163, 0.1); }
.nav-btn.active { background: var(--accent-color); color: var(--bg-color); font-weight: bold; }

/* Main Content */
.main-content {
    grid-row: 2 / 3;
    background: var(--bg-color);
    padding: 20px;
    overflow-y: auto;
    position: relative;
    border-right: var(--border-style);
}

.node-card {
    border: 1px solid var(--border-color);
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}
.node-card h3 { border: none; padding: 0; margin-top: 0; }

.node-card.locked {
    opacity: 0.5;
    pointer-events: none;
    filter: grayscale(1);
    border-style: dashed;
}

.clue-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 8px 0;
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
}
.clue-item:hover { background: rgba(255, 255, 255, 0.05); }

.clue-checkbox {
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid var(--accent-color);
    border-radius: 3px;
    background: transparent;
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
}
.clue-checkbox:checked { background: var(--accent-color); }
.clue-checkbox:checked::after { content: '✓'; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); color: var(--header-bg); font-size: 14px; font-weight: bold; }

/* Right Panel */
.status-panel {
    grid-row: 2 / 3;
    background: var(--header-bg);
    padding: 20px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}
.progress-module { margin-bottom: 30px; }
.bar-container { height: 10px; background: #333; margin-top: 10px; border-radius: 5px; overflow: hidden; }
.bar-fill { height: 100%; background: var(--accent-color); width: 0%; transition: width 0.5s ease; }

/* Footer */
.footer {
    grid-column: 1 / -1;
    border-top: var(--border-style);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: var(--dim-color);
    background: var(--header-bg);
}

.hidden { display: none !important; }

/* Grid */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.card {
    border: 1px solid var(--border-color);
    padding: 15px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 4px;
    transition: transform 0.2s, border-color 0.2s;
}
.card:hover { transform: translateY(-2px); border-color: var(--accent-color); }

/* Badges */
.badged { display: inline-block; padding: 2px 8px; background: var(--accent-color); color: var(--bg-color); font-size: 0.75rem; font-weight: bold; border-radius: 2px; margin-left: 10px; letter-spacing: 1px; box-shadow: 0 0 5px var(--accent-color); }
.tag { display: inline-block; font-size: 0.7rem; color: var(--dim-color); border: 1px solid var(--dim-color); padding: 1px 6px; border-radius: 10px; margin-bottom: 5px; text-transform: uppercase; }
.tier-badge { background: var(--text-color); color: var(--bg-color); font-weight: bold; padding: 2px 6px; border-radius: 2px; font-size: 0.8rem; float: right; }
.rewards { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; font-size: 0.9rem; padding-top: 10px; border-top: 1px dashed var(--border-color); }
.loot { color: var(--secondary-color); text-shadow: 0 0 3px var(--secondary-color); font-weight: bold; }
.cost { color: #ffd700; font-weight: bold; }
.item-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 15px; }

/* Mobile */
@media (max-width: 899px) {
    .container { display: flex; flex-direction: column; height: 100vh; overflow: hidden; }
    .header { flex-shrink: 0; height: 60px; padding-left: 10px; }
    .logo { margin-left: 40px; font-size: 1rem; }
    .sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: 80%; max-width: 300px; z-index: 99; transform: translateX(-100%); transition: transform 0.3s ease-in-out; box-shadow: 2px 0 10px rgba(0, 0, 0, 0.5); padding-top: 70px; }
    .sidebar.open { transform: translateX(0); }
    .main-content { flex-grow: 1; overflow-y: auto; padding: 15px; }
    .status-panel { display: none; }
    .footer { display: none; }
}
