/* ============================================
   NAVBAR + LAYOUT
   ============================================ */

/* ── Top Navbar ── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  height: 64px;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 20px;
  gap: 12px;
}

[data-theme="light"] .navbar {
  background: rgba(247, 245, 240, 0.95);
}

/* ── Logo ── */
.navbar-logo {
  display: flex; align-items: center; gap: 12px;
  font-weight: 800; font-size: 1.05rem;
  color: var(--text); flex-shrink: 0;
  text-decoration: none;
}
.navbar-logo .logo-icon {
  width: 38px; height: 38px;
  background: #000; border: 2px solid var(--gold); border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem; font-weight: 900; color: var(--gold);
  letter-spacing: 0; text-align: center; line-height: 1.2; padding: 2px;
}
.navbar-logo .logo-name { display: flex; flex-direction: column; line-height: 1.1; }
.navbar-logo .logo-name .line1 {
  font-size: 0.72rem; font-weight: 700;
  color: var(--text-muted); letter-spacing: 0.1em; text-transform: uppercase;
}
.navbar-logo .logo-name .line2 {
  font-size: 1rem; font-weight: 800; color: var(--gold); letter-spacing: -0.01em;
}

/* ── Navbar tabs ── */
.navbar-tabs {
  display: flex; align-items: stretch; height: 100%;
  flex: 1; justify-content: center; gap: 0; overflow: visible;
}

.nb-tab {
  position: relative;
  display: flex; align-items: center; gap: 5px;
  padding: 0 14px; height: 100%;
  cursor: pointer; font-size: .88rem; font-weight: 600;
  color: rgba(255,255,255,0.55);
  transition: color .15s, background .15s;
  user-select: none; white-space: nowrap;
  border-bottom: 2px solid transparent;
}
.nb-tab:hover { color: rgba(255,255,255,0.9); background: rgba(255,255,255,0.04); }
.nb-tab.active { color: var(--gold); border-bottom-color: var(--gold); }
[data-theme="light"] .nb-tab { color: rgba(0,0,0,0.5); }
[data-theme="light"] .nb-tab:hover { color: rgba(0,0,0,0.85); }
[data-theme="light"] .nb-tab.active { color: var(--gold); }

.nb-chevron { font-size: .65rem; opacity: .55; margin-top: 1px; }

/* ── Dropdown ── */
.nb-dropdown {
  display: none;
  position: absolute; top: 100%; left: 0;
  min-width: 240px;
  background: #111; border: 1px solid var(--border); border-top: none;
  border-radius: 0 0 12px 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.6);
  z-index: 300; padding: 6px 0;
  max-height: 70vh; overflow-y: auto;
}
.nb-tab.open .nb-dropdown { display: block; }
[data-theme="light"] .nb-dropdown { background: #f7f5f0; border-color: rgba(0,0,0,0.12); }

/* ── Global <select> option colours ── */
select option { background: #1a1a2e; color: rgba(255,255,255,0.9); }
[data-theme="light"] select option { background: #ffffff; color: #111111; }

.nb-dd-header {
  padding: 10px 18px 4px;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: #7dd3fc;
  border-top: 1px solid rgba(255,255,255,0.07);
  margin-top: 4px;
  cursor: default;
  user-select: none;
}
.nb-dd-header:first-child { border-top: none; margin-top: 0; }
[data-theme="light"] .nb-dd-header { color: #0369a1; border-top-color: rgba(0,0,0,0.08); }

.nb-dd-item {
  padding: 10px 18px; font-size: .9rem; color: rgba(255,255,255,0.72);
  cursor: pointer; transition: background .12s, color .12s; line-height: 1.4;
}
.nb-dd-item:hover      { background: rgba(255,255,255,0.07); color: var(--text); }
.nb-dd-item.active     { color: var(--gold); font-weight: 700; }
.nb-dd-item.coming-soon { color: rgba(255,255,255,0.3); cursor: default; font-style: italic; }
[data-theme="light"] .nb-dd-item { color: rgba(0,0,0,0.65); }
[data-theme="light"] .nb-dd-item:hover { background: rgba(0,0,0,0.06); color: #111; }
[data-theme="light"] .nb-dd-item.active { color: #b8860b; }

/* ── Navbar right ── */
.navbar-right { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }

.theme-toggle {
  background: var(--bg-card-2); border: 1px solid var(--border); border-radius: 8px;
  padding: 8px; cursor: pointer; color: var(--text-muted);
  transition: all var(--transition);
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; font-size: 1rem;
}
.theme-toggle:hover { border-color: var(--accent); color: var(--accent); }

/* ── Main Content Area (no sidebar) ── */
.main-content {
  margin-left: 0;
  margin-top: 64px;
  min-height: calc(100vh - 64px);
  padding: 40px;
}

/* ── Section Headers ── */
.section-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 16px; margin-bottom: 32px; flex-wrap: wrap;
}
.section-title    { margin-bottom: 6px; }
.section-subtitle { color: var(--text-muted); font-size: 0.95rem; }

/* ── Home Page ── */
.hp-hero {
  text-align: center;
  padding: 60px 8px 40px;
}
.hp-hero-icon {
  font-size: 4rem;
  margin-bottom: 16px;
}
.hp-hero-title {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--text);
}
.hp-hero-sub {
  font-size: 1.1rem;
  color: var(--text-muted);
  display: inline-block;
  white-space: nowrap;
  margin: 0;
}
.hp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  padding: 8px;
}
.hp-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px 24px;
  text-align: center;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.hp-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.25);
  border-color: var(--gold);
}
.hp-card-icon {
  font-size: 2.6rem;
  margin-bottom: 14px;
}
.hp-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text);
}
.hp-card-count {
  font-size: .9rem;
  color: var(--text-muted);
  margin: 0;
}

.hp-info {
  padding: 60px 8px 40px;
}
.hp-info-title {
  text-align: center;
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 28px;
  color: var(--text);
}
.hp-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}
.hp-info-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px 20px;
}
.hp-info-icon {
  font-size: 2rem;
  margin-bottom: 10px;
}
.hp-info-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}
.hp-info-card p {
  font-size: .95rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0;
}

/* ── Home dropdown ── */
.hp-card-wrap {
  display: flex;
  flex-direction: column;
}
.hp-card {
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}
.hp-arrow {
  margin-left: 6px;
  transition: transform .15s;
  display: inline-block;
}
.hp-dd {
  background: var(--card);
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 14px 14px;
  margin-top: -14px;
  padding: 18px 8px 8px;
  z-index: 1;
  max-height: 70vh;
  overflow-y: auto;
}
.hp-dd-item {
  padding: 10px 14px;
  font-size: .9rem;
  color: rgba(255,255,255,0.75);
  cursor: pointer;
  border-radius: 8px;
  transition: background .12s, color .12s;
}
.hp-dd-item:hover {
  background: rgba(255,255,255,0.06);
  color: var(--text);
}
[data-theme="light"] .hp-dd-item {
  color: rgba(0,0,0,0.7);
}
[data-theme="light"] .hp-dd-item:hover {
  background: rgba(0,0,0,0.04);
  color: var(--text);
}
.hp-dd-group {
  padding: 6px 14px;
  font-size: .8rem;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: .03em;
  margin-top: 6px;
}
.hp-dd-group:first-child {
  margin-top: 0;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .main-content { padding: 24px 16px; }
  .nb-tab { padding: 0 8px; font-size: .8rem; }
}
@media (max-width: 600px) {
  .navbar-logo .logo-name { display: none; }
  .nb-tab { font-size: .72rem; padding: 0 6px; }
}
