/* Nexus Buddy — scaffold theme + layout. */
:root, [data-theme="nexus-dark"] {
    --bg: #0a0e1a; --bg-2: #0f1424; --panel: #151c30; --panel-2: #1b2440;
    --border: #232c47; --text: #e7eaf3; --muted: #93a0bd;
    --accent: #7c5cff; --accent-2: #28e0c8; --score: #28e0c8;
    --shadow: 0 6px 22px rgba(0,0,0,.35);
}
[data-theme="nexus-light"] {
    --bg: #eef1f7; --bg-2: #ffffff; --panel: #ffffff; --panel-2: #f3f5fb;
    --border: #d8deea; --text: #1a2238; --muted: #5d6b86;
    --accent: #6d4bf0; --accent-2: #0fb9a6; --score: #0fb9a6;
    --shadow: 0 6px 22px rgba(40,50,80,.12);
}

* { box-sizing: border-box; }
body {
    margin: 0; background: var(--bg); color: var(--text);
    font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    min-height: 100vh;
}

.topbar {
    display: flex; align-items: center; justify-content: space-between;
    gap: 16px; padding: 14px 22px; background: var(--bg-2);
    border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 10;
}
.brand { display: flex; align-items: baseline; gap: 10px; }
.brand-mark { font-size: 1.4rem; }
.brand h1 { margin: 0; font-size: 1.25rem; letter-spacing: .02em; }
.tagline { color: var(--muted); font-size: .8rem; }
.controls { display: flex; gap: 10px; align-items: center; }
.search, .theme-select {
    background: var(--panel); color: var(--text); border: 1px solid var(--border);
    border-radius: 10px; padding: 8px 12px; font-size: .9rem; outline: none;
}
.search { min-width: 220px; }
.search:focus, .theme-select:focus { border-color: var(--accent); }

.layout {
    display: grid; grid-template-columns: 1fr 380px; gap: 20px;
    max-width: 1280px; margin: 0 auto; padding: 20px 22px;
}
@media (max-width: 880px) { .layout { grid-template-columns: 1fr; } }

.pane-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px; }
.pane-head h2 { margin: 0; font-size: 1rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.patch { color: var(--muted); font-size: .78rem; }

.champ-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 12px;
}
.champ-card {
    display: flex; flex-direction: column; align-items: center; gap: 4px;
    background: var(--panel); border: 1px solid var(--border); border-radius: 12px;
    padding: 10px 6px; cursor: pointer; color: var(--text); transition: .15s;
}
.champ-card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow); }
.champ-card img { width: 56px; height: 56px; border-radius: 10px; }
.cc-name { font-weight: 700; font-size: .82rem; }
.cc-tags { color: var(--muted); font-size: .64rem; text-align: center; }

.similar-pane {
    background: var(--panel); border: 1px solid var(--border); border-radius: 14px;
    padding: 16px; align-self: start; position: sticky; top: 80px; box-shadow: var(--shadow);
}
.similar-empty, .loader { color: var(--muted); text-align: center; padding: 28px 12px; font-size: .9rem; }
.loader.err { color: var(--accent); }

.sim-head { display: flex; align-items: center; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--border); margin-bottom: 12px; }
.sim-head img { width: 52px; height: 52px; border-radius: 10px; }
.sim-title { font-weight: 800; font-size: 1.02rem; }
.sim-sub { color: var(--muted); font-size: .72rem; }

.sim-list { display: flex; flex-direction: column; gap: 8px; }
.sim-row {
    display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 10px;
    width: 100%; text-align: left; background: var(--panel-2); border: 1px solid var(--border);
    border-radius: 10px; padding: 8px 10px; cursor: pointer; color: var(--text); transition: .12s;
}
.sim-row:hover { border-color: var(--accent); }
.sim-row img { width: 40px; height: 40px; border-radius: 8px; }
.sim-name { font-weight: 700; font-size: .9rem; }
.sim-why { color: var(--muted); font-size: .7rem; }
.sim-score { font-family: 'Rajdhani', var(--font-ui, sans-serif); font-weight: 800; font-size: 1.25rem; color: var(--score); }
.sim-score small { font-size: .7rem; opacity: .7; }

.footer { text-align: center; color: var(--muted); font-size: .72rem; padding: 24px; border-top: 1px solid var(--border); }
