:root {
    --primary: #8a2be2;
    --secondary: #4169e1;
    --text: #e0e0e0;
    --text-muted: #a0a0a0;
    --bg-glass: rgba(20, 20, 30, 0.6);
    --border-glass: rgba(255, 255, 255, 0.1);
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: #0d0d12;
    color: var(--text);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.background {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at 50% 50%, #1a0b2e 0%, #0d0d12 100%);
    z-index: -1;
}

.glass-container {
    width: 100%;
    max-width: 1200px;
    background: rgba(20, 20, 30, 0.95); /* Opaque enough to read without blur */
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    height: 90vh;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 1rem;
}

header h1 {
    font-size: 2rem;
    background: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.main-nav {
    display: flex;
    gap: 1rem;
}
.nav-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: 0.2s;
}
.nav-btn:hover {
    color: #fff;
    background: rgba(255,255,255,0.05);
}
.nav-btn.active {
    color: #fff;
    background: rgba(138,43,226,0.3);
    border-bottom: 2px solid var(--primary);
}

.search-bar {
    display: flex;
    gap: 0.5rem;
}

.search-bar input {
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--border-glass);
    color: #fff;
    padding: 0.8rem 1.2rem;
    border-radius: 10px;
    width: 300px;
    outline: none;
    font-size: 1rem;
}

.search-bar input:focus {
    border-color: var(--primary);
}

.search-bar button {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    border: none;
    padding: 0 1.5rem;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
}

/* Home View Styles */
.home-container {
    padding: 1rem;
}

.hero-section {
    text-align: center;
    margin-bottom: 3rem;
    padding: 3rem 0;
    background: linear-gradient(to bottom, rgba(138,43,226,0.1), transparent);
    border-radius: 16px;
    border: 1px solid rgba(138,43,226,0.2);
}
.hero-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #fff;
}
.hero-section p {
    font-size: 1.2rem;
    color: var(--text-muted);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1.5rem;
}
.feature-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    padding: 2rem;
    transition: 0.2s;
}
.feature-card:hover {
    background: rgba(255,255,255,0.05);
    border-color: var(--primary);
    transform: translateY(-2px);
}
.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #4facfe;
}
.feature-card p {
    color: #bbb;
    line-height: 1.6;
}

/* Wiki View Styles */
.layout {
    display: flex;
    gap: 2rem;
    flex: 1;
    overflow: hidden;
}

.sidebar {
    width: 250px;
    border-right: 1px solid var(--border-glass);
    padding-right: 1rem;
    display: flex;
    flex-direction: column;
}

.sidebar h3 {
    margin-bottom: 1rem;
    color: var(--text-muted);
}

.scroll-area {
    overflow-y: auto;
    flex: 1;
}
.scroll-area::-webkit-scrollbar { width: 6px; }
.scroll-area::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.2); border-radius: 10px; }

.sidebar-item {
    padding: 1rem;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.2s;
    margin-bottom: 0.5rem;
    background: rgba(255,255,255,0.02);
}
.sidebar-item:hover { background: rgba(255,255,255,0.05); }
.sidebar-item.active {
    background: rgba(138,43,226,0.3);
    border-left: 4px solid var(--primary);
}

.req { font-size: 0.8rem; color: #82e0aa; margin-left: 5px; }

.content-area {
    padding-right: 1rem;
}

.section-title {
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    gap: 10px;
}
.badge {
    font-size: 0.9rem;
    background: rgba(46, 204, 113, 0.2);
    color: #82e0aa;
    padding: 2px 10px;
    border-radius: 10px;
}

.monster-grid, .drop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.2rem;
}

.monster-card, .drop-card {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    padding: 1.2rem;
    transition: all 0.3s;
}

.monster-card.highlighted {
    background: rgba(138,43,226,0.2);
    border-color: #8a2be2;
    box-shadow: 0 0 15px rgba(138,43,226,0.4);
    transform: scale(1.02);
}

.monster-card h3 { font-size: 1.2rem; margin-bottom: 5px; }
.level { color: #f39c12; font-size: 0.9rem; }
.stats { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 15px; }

.drops-container {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    background: rgba(255,255,255,0.02);
    padding: 10px;
    border-radius: 8px;
}

.no-drop { color: #555; font-size: 0.8rem; }

.drop-tag {
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 6px;
    background: rgba(255,255,255,0.1);
}

.drop-tag.interactive {
    cursor: pointer;
    transition: all 0.2s;
}
.drop-tag.interactive:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}
.drop-tag.interactive.active-drop {
    box-shadow: 0 0 10px rgba(255,255,255,0.8);
    border: 1px solid white;
}

.drop-tag.common { color: #e0e0e0; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); }
.drop-tag.green { color: #82e0aa; background: rgba(46, 204, 113, 0.1); border: 1px solid rgba(46, 204, 113, 0.3); }
.drop-tag.epic { color: #d6b4fc; background: rgba(138, 43, 226, 0.2); border: 1px solid rgba(138, 43, 226, 0.4); }
.drop-tag.legendary { color: #ffd17a; background: rgba(255, 165, 0, 0.2); border: 1px solid rgba(255, 165, 0, 0.4); }

.sub-title { margin: 1rem 0; color: #00f2fe; }
.drop-card h4 { font-size: 1.2rem; margin-bottom: 5px; }
.drop-card h4.common { color: #e0e0e0; }
.drop-card h4.green { color: #82e0aa; }
.drop-card h4.epic { color: #d6b4fc; }
.drop-card h4.legendary { color: #ffd17a; }
.drop-card p { font-size: 0.85rem; color: #aaa; margin-bottom: 5px; }
.drop-card .source { color: #fff; background: rgba(255,255,255,0.1); padding: 4px; border-radius: 4px; }

/* Download Section Styles */
.download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    margin-top: 1.5rem;
    padding: 0.9rem 2.2rem;
    background: linear-gradient(135deg, #00c6ff 0%, #0072ff 100%);
    color: #ffffff;
    font-size: 1.15rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(0, 114, 255, 0.4);
    transition: all 0.3s ease;
}
.download-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 30px rgba(0, 198, 255, 0.6);
    filter: brightness(1.1);
}

.download-card {
    border-color: rgba(0, 198, 255, 0.4) !important;
    background: linear-gradient(135deg, rgba(0, 198, 255, 0.08) 0%, rgba(138, 43, 226, 0.08) 100%) !important;
    position: relative;
    overflow: hidden;
}
.download-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, #00c6ff, #0072ff);
}
.quark-badge {
    display: inline-block;
    background: rgba(0, 198, 255, 0.15);
    border: 1px solid rgba(0, 198, 255, 0.4);
    color: #00c6ff;
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}
.quark-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #0072ff 0%, #00c6ff 100%);
    color: #ffffff;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 114, 255, 0.3);
}
.quark-link-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 198, 255, 0.5);
}

