/* ==========================================================================
   MONEYMAP HEADER & NAVIGATION CSS
   Floating Glassmorphism Header with Interactive Mobile Drawer
   ========================================================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 80px;
  background: transparent;
  transition: all var(--trans-normal);
}

.site-header.scrolled {
  background: rgba(7, 9, 19, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  height: 72px;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

/* Brand Logo */
.header-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  position: relative;
  z-index: 10;
}

.brand-logo-line {
  height: 75px;
  width: auto;
  max-width: 210px;
  object-fit: contain;
  transition: transform var(--trans-fast), filter var(--trans-fast);
}

.header-brand:hover .brand-logo-line {
  transform: scale(1.03);
  filter: drop-shadow(0 0 14px rgba(99, 102, 241, 0.35));
}

.brand-logo-wrapper {
  position: relative;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.2) 0%, rgba(6, 182, 212, 0.15) 100%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  overflow: hidden;
}

.brand-logo-img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  transition: transform var(--trans-fast);
}

.header-brand:hover .brand-logo-img {
  transform: scale(1.08);
}

.brand-glow-pulse {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(99, 102, 241, 0.4) 0%, transparent 70%);
  opacity: 0.6;
  pointer-events: none;
}

.brand-text-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-title {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.03em;
}

.brand-accent {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-badge {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  background: rgba(16, 185, 129, 0.15);
  color: var(--emerald-light);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

/* Desktop Navigation */
.desktop-nav {
  display: block;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(16, 22, 47, 0.5);
  padding: 4px 8px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
}

.nav-link {
  display: inline-block;
  padding: 8px 16px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-full);
  transition: all var(--trans-fast);
  position: relative;
}

.nav-link:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}

.nav-link.active {
  color: #ffffff;
  font-weight: 600;
  background: rgba(99, 102, 241, 0.2);
  border: 1px solid rgba(99, 102, 241, 0.35);
  box-shadow: 0 0 15px rgba(99, 102, 241, 0.25);
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-login-btn {
  display: inline-flex;
}

.nav-register-btn {
  display: inline-flex;
}

/* Mobile Toggle Hamburger Button */
.mobile-toggle-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  cursor: pointer;
  transition: all var(--trans-fast);
}

.mobile-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.hamburger-bar {
  width: 20px;
  height: 2px;
  background-color: var(--text-primary);
  border-radius: 2px;
  transition: all var(--trans-fast);
}

/* Mobile Slide-Out Drawer */
.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
}

.mobile-drawer.is-open {
  display: block;
}

.mobile-drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 9, 19, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.mobile-drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: 320px;
  max-width: 85vw;
  height: 100%;
  background: var(--bg-surface);
  border-left: 1px solid var(--border-light);
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  padding: 24px;
  animation: slideDrawer 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideDrawer {
  from {
    transform: translateX(100%);
  }

  to {
    transform: translateX(0);
  }
}

.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 24px;
}

.mobile-close-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}

.mobile-close-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.mobile-nav-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobile-nav-link {
  display: block;
  padding: 12px 16px;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-md);
  transition: all var(--trans-fast);
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
  color: #ffffff;
  background: rgba(99, 102, 241, 0.15);
  border-left: 3px solid var(--primary);
}

.mobile-drawer-footer {
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
}

.mobile-security-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-top: 16px;
}

.mb-3 {
  margin-bottom: 12px;
}