/* v2-nav.css — shared Pro sidebar navigation
 * Sourced verbatim from settings.html (2026-07-13). Consumed by any Pro page
 * that includes /pro/assets/js/v2-nav.js — the JS injects the sidebar DOM,
 * this file provides the styles.
 *
 * CSS vars this depends on (already defined in the host page): --border,
 * --text, --gold-warm, --serif, --mono, --emerald.
 */

body { padding-left: 240px; overflow-x: hidden; }

.v2-sidebar {
  position: fixed;
  left: 0; top: 0;
  width: 240px;
  height: 100vh;
  background: linear-gradient(180deg,#101010 0%, #0c0c0c 100%);
  border-right: 1px solid var(--border);
  padding: 22px 18px 20px;
  display: flex; flex-direction: column; gap: 18px;
  z-index: 50;
  overflow-y: auto;
}
.v2-sidebar::-webkit-scrollbar { width: 6px; }
.v2-sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 3px; }

.v2-brand {
  display: flex; align-items: center; gap: 10px;
  padding: 4px 4px 6px;
  text-decoration: none; color: inherit;
}
.v2-brand-logo {
  width: 34px; height: 34px; border-radius: 9px;
  background: linear-gradient(135deg,#f5a623 0%, #d97706 100%);
  color: #1a0f00;
  font-family: var(--serif); font-weight: 600; font-size: 19px;
  display: grid; place-items: center;
  box-shadow: 0 6px 16px -6px rgba(245,166,35,0.5), inset 0 1px 0 rgba(255,255,255,0.25);
}
.v2-brand-name {
  font-family: var(--serif); font-size: 22px; font-weight: 500;
  letter-spacing: -0.01em; flex: 1;
}
.v2-brand-pro {
  font-family: var(--mono); font-size: 10px; font-weight: 700;
  letter-spacing: 0.12em; color: var(--emerald);
  border: 1px solid rgba(94,229,177,0.35);
  background: rgba(94,229,177,0.10);
  padding: 3px 8px 2px; border-radius: 999px;
}

.v2-nav {
  display: flex; flex-direction: column; gap: 2px;
  margin-top: 6px; flex: 1; min-height: 0;
}
.v2-nav-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: 12px;
  color: rgba(244,241,234,0.62);
  text-decoration: none;
  font-size: 14px; font-weight: 500;
  border: 1px solid transparent;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.v2-nav-item:hover {
  background: rgba(255,255,255,0.025);
  color: var(--text);
}
.v2-nav-item.active {
  background: linear-gradient(90deg, rgba(245,166,35,0.14) 0%, rgba(245,166,35,0.04) 100%);
  color: var(--text);
  border-color: rgba(245,166,35,0.20);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
}
.v2-nav-icon {
  width: 18px; height: 18px;
  display: grid; place-items: center;
  color: currentColor; opacity: 0.85; flex-shrink: 0;
}
.v2-nav-item.active .v2-nav-icon { color: var(--gold-warm); opacity: 1; }
.v2-nav-label { flex: 1; }
.v2-nav-pill {
  font-family: var(--mono); font-size: 9px; font-weight: 700;
  letter-spacing: 0.14em; color: var(--emerald);
  border: 1px solid rgba(94,229,177,0.35);
  background: rgba(94,229,177,0.10);
  padding: 2px 7px 1px; border-radius: 999px;
}

.v2-credits {
  margin-top: auto; padding: 18px 16px 16px;
  border-radius: 18px;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(94,229,177,0.07), transparent 70%),
    #0e1311;
  border: 1px solid rgba(94,229,177,0.18);
  text-align: center;
  position: relative; overflow: hidden;
}
.v2-credits-label {
  font-family: var(--mono); font-size: 10px; font-weight: 600;
  letter-spacing: 0.18em; color: var(--emerald);
  display: flex; align-items: center; justify-content: center; gap: 6px;
}
.v2-credits-inf {
  font-family: var(--serif); font-weight: 400;
  font-size: 44px; line-height: 1;
  margin: 10px 0 6px; color: var(--text); letter-spacing: -0.02em;
}
.v2-credits-sub {
  font-size: 12px; color: rgba(244,241,234,0.55);
}

@media (max-width: 1100px) {
  body { padding-left: 72px; }
  .v2-sidebar { width: 72px; }
  .v2-brand-name, .v2-brand-pro, .v2-nav-label, .v2-nav-pill, .v2-credits { display: none; }
  .v2-brand { justify-content: center; padding: 4px 0; }
  .v2-nav-item { justify-content: center; padding: 12px 8px; }
}

@media (max-width: 820px) {
  body { padding-left: 0; padding-top: 56px; }
  .v2-sidebar {
    width: 100%;
    height: 56px;
    flex-direction: row; padding: 8px 12px;
    align-items: center; border-right: none;
    border-bottom: 1px solid var(--border);
    gap: 10px;
    top: 0;
  }
  .v2-brand { padding: 0; }
  .v2-brand-name { display: inline; font-size: 18px; }
  .v2-brand-pro { display: inline; }
  .v2-nav {
    flex-direction: row; gap: 2px;
    overflow-x: auto; margin-top: 0;
    flex: 1; justify-content: flex-end;
    scrollbar-width: none;
  }
  .v2-nav::-webkit-scrollbar { display: none; }
  .v2-nav-item { padding: 8px; flex-shrink: 0; }
}
