/* ========================================
   BASE NAVBAR STYLES
   Uses --navbar-height from globals.css
   ======================================== */

.navbar {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  height: var(--navbar-height);
  min-height: var(--navbar-height);
  max-height: var(--navbar-height);
  border-bottom: 1px solid #e0e0e0;
}

.navbar-brand {
  min-height: var(--navbar-height);
}

.navbar-brand .navbar-item {
  padding-top: 0;
  padding-bottom: 0;
}

.navbar-brand .navbar-item img,
.navbar-brand .navbar-item svg {
  max-height: 3.0rem;
  height: 3.0rem;
}

/* Prevent background change on logo hover/active/focus - needs !important to override Bulma */
.navbar-brand > a.navbar-item:is(:hover, :focus, :active),
[data-theme="dark"] .navbar-brand > a.navbar-item:is(:hover, :focus, :active) {
  background-color: transparent !important;
}

/* Container for theme toggle and hamburger on mobile */
.navbar-brand-end {
  margin-left: auto;
  display: flex;
  align-items: center;
}

/* Prevent background change on hamburger menu */
.navbar-burger:is(:hover, :focus, :active) {
  background-color: transparent !important;
}

/* ========================================
   NAVBAR BUTTONS (LIGHT THEME)
   ======================================== */

.navbar.is-light .button.is-primary {
  background-color: #3b82f6;
  border: none;
  color: white;
}

.navbar.is-light .button.is-primary:hover {
  background-color: #2563eb;
}

.navbar.is-light .button.is-light {
  border: 1px solid #e5e7eb;
}

.navbar.is-light .button.is-light:hover {
  background-color: #f3f4f6;
}

/* ========================================
   THEME TOGGLE BUTTON
   ======================================== */

/* Responsive visibility */
.theme-toggle-mobile {
  display: flex;
}

.theme-toggle-desktop {
  display: none;
}

@media screen and (min-width: 1024px) {
  .theme-toggle-mobile {
    display: none;
  }

  .theme-toggle-desktop {
    display: flex;
  }
}

/* Button styling */
.theme-toggle {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 4px;
  transition: background-color 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* No background on hover - keep transparent like hamburger */
.theme-toggle:is(:hover, :focus, :active) {
  background-color: transparent;
}

/* Icon styling - consolidated for both sun and moon */
.theme-toggle .fa-sun,
.theme-toggle .fa-moon {
  font-size: 1.25rem;
  transition: filter 0.2s ease;
}

.theme-toggle .fa-sun {
  color: #fbbf24;
}

.theme-toggle .fa-moon {
  color: #8b5cf6;
}

.theme-toggle:hover .fa-sun,
.theme-toggle:hover .fa-moon {
  filter: brightness(1.2);
}

/* Prevent navbar-item hover/active/focus effect on theme toggle container - needs !important to override Bulma */
.navbar-item:has(.theme-toggle):is(:hover, :focus, :active),
[data-theme="dark"] .navbar-item:has(.theme-toggle):is(:hover, :focus, :active) {
  background-color: transparent !important;
}

/* ========================================
   DARK THEME OVERRIDES
   ======================================== */

[data-theme="dark"] .navbar.is-light {
  background-color: #1f2937;
  border-bottom: 1px solid #374151;
}

/* Navbar items */
[data-theme="dark"] .navbar.is-light .navbar-item {
  color: #f9fafb;
}

/* Make "Networks" text white in dark mode logo */
[data-theme="dark"] .navbar-brand .navbar-item svg .logo-networks {
  fill: #ffffff;
}

/* Prevent background change on navbar items in dark mode - needs !important to override Bulma */
[data-theme="dark"] .navbar.is-light .navbar-item:is(:hover, :not(.navbar-burger)),
[data-theme="dark"] .navbar.is-light .navbar-menu .navbar-item:hover {
  background-color: transparent !important;
}

/* Navbar burger */
[data-theme="dark"] .navbar.is-light .navbar-burger span {
  background-color: #f9fafb;
}

/* Navbar dropdown menu */
[data-theme="dark"] .navbar.is-light .navbar-menu {
  background-color: #1f2937;
}

/* Button styling */
[data-theme="dark"] .navbar.is-light .button.is-light {
  background-color: #374151;
  color: #f9fafb;
  border-color: #4b5563;
}

[data-theme="dark"] .navbar.is-light .button.is-light:hover {
  background-color: #4b5563;
}
