/* ═══════════════════════════════════════════════════════
   WEBNATE — 2-navigation.css
   Navigation, Topbar & Settings
   ═══════════════════════════════════════════════════════ */

/* ─── BACKGROUND ORBS ─── */
.orb {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(80px);
  opacity: 0.35;
  transition: background 0.6s;
}
.orb-1 {
  width: 600px; height: 600px;
  background: var(--accent);
  top: -200px; left: -150px;
  animation: orbFloat1 18s ease-in-out infinite;
}
.orb-2 {
  width: 450px; height: 450px;
  background: var(--accent-2);
  bottom: -100px; right: -120px;
  animation: orbFloat2 22s ease-in-out infinite;
}
.orb-3 {
  width: 300px; height: 300px;
  background: var(--accent);
  top: 50%; left: 60%;
  animation: orbFloat3 26s ease-in-out infinite;
  opacity: 0.18;
}
@keyframes orbFloat1 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(80px,120px) scale(1.08); } }
@keyframes orbFloat2 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-100px,-80px) scale(1.06); } }
@keyframes orbFloat3 { 0%,100% { transform: translate(0,0); } 33% { transform: translate(-60px,40px); } 66% { transform: translate(40px,-50px); } }

/* ─── CURSOR GLOW ─── */
.cursor-glow {
  position: fixed; top:0; left:0;
  width: 280px; height: 280px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 60%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  transform: translate(-50%, -50%);
  transition: top 0.1s linear, left 0.1s linear, opacity 0.5s;
  opacity: 0.5;
}

/* ─── PARTICLE CANVAS ─── */
#particles-canvas {
  position: fixed; top:0; left:0;
  width:100%; height:100%;
  z-index: 0;
  pointer-events: none;
}

/* ─── TOPBAR ─── */
.topbar {
  position: fixed; top:0; left:0; right:0;
  height: 56px;
  background: rgba(8,8,16,0.6);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  transition: background 0.4s, border-color 0.4s, transform 0.32s cubic-bezier(.4,0,.2,1);
}
[data-theme="light"] .topbar { background: rgba(242,242,245,0.7); }
[data-theme="midnight"] .topbar { background: rgba(10,14,20,0.65); }
[data-theme="slate"] .topbar { background: rgba(12,15,21,0.65); }

.topbar-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 0 28px;
  height: 100%;
  display: flex; align-items: center; justify-content: space-between;
}
.topbar-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-primary);
  letter-spacing: -0.5px;
  display: flex; align-items: center; gap: 8px;
}
.logo-icon { color: var(--accent); font-size: 0.95rem; }
.topbar-actions { display: flex; align-items: center; gap: 14px; }

/* ─── THEME SWITCHER ─── */
.theme-switcher {
  display: flex; gap: 3px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 3px;
}
.theme-btn {
  width: 28px; height: 28px;
  border: none; border-radius: 6px;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  display: flex; align-items: center; justify-content: center;
}
.theme-btn:hover { color: var(--text-primary); background: var(--accent-dim); }
.theme-btn.active { background: var(--accent); color: #fff; box-shadow: 0 2px 8px var(--accent-glow); }

/* ─── SETTINGS TOGGLE ─── */
.settings-toggle {
  width: 36px; height: 36px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  color: var(--text-secondary);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
}
.settings-toggle:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-dim); }

/* ─── SETTINGS PANEL ─── */
.settings-panel {
  position: fixed; top: 66px; right: 28px;
  width: 270px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card-hover);
  z-index: 999;
  opacity: 0; visibility: hidden;
  transform: translateY(-10px) scale(0.97);
  transition: opacity 0.22s, transform 0.22s, visibility 0.22s;
}
.settings-panel.open { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.settings-panel-inner { padding: 18px; }
.settings-header {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.settings-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.settings-row:last-child { border-bottom: none; }
.settings-row label { 
  font-size: 0.8rem; 
  color: var(--text-secondary); 
  font-weight: 500;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.setting-hint {
  font-size: 0.65rem;
  color: var(--text-muted);
  font-weight: 400;
}
.toggle-btn {
  padding: 5px 13px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--bg-input);
  color: var(--text-muted);
  font-size: 0.7rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.toggle-btn.on { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ─── BACK TO TOP ─── */
.back-to-top {
  position: fixed; bottom: 36px; right: 36px;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-secondary);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-card);
  opacity: 0; visibility: hidden;
  transform: translateY(14px);
  transition: all var(--transition);
  z-index: 100;
  backdrop-filter: blur(8px);
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); box-shadow: 0 4px 16px var(--accent-glow); }