/* Stromfee.ai Design System - Navbar Styles */

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

[data-theme="dark"] .navbar {
  background: rgba(10, 14, 26, 0.95);
}

.navbar-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.navbar-brand {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
}

.navbar-nav {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-item {
  position: relative;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-link:hover {
  color: var(--primary);
}

/* Dropdown Menu */
.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  min-width: 250px;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  margin-top: 1rem;
  z-index: 100;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  padding: 1rem;
  border-radius: 6px;
  transition: all 0.2s ease;
  cursor: pointer;
  display: block;
  text-decoration: none;
  color: var(--text-secondary);
}

.dropdown-item:hover {
  background: var(--bg-card-hover);
  color: var(--primary);
  transform: translateX(5px);
}

.dropdown-item-title {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.dropdown-item-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Theme & Language Toggles */
.navbar-controls {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.theme-toggle, .lang-toggle {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.5rem 1rem;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.theme-toggle:hover, .lang-toggle:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  transform: translateY(-2px);
}

.login-btn {
  background: var(--gradient-primary);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.login-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(14, 186, 177, 0.3);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: all 0.3s ease;
}

@media (max-width: 768px) {
  /* Mobile Menu Toggle */
  .mobile-menu-toggle {
    display: flex;
  }

  /* Mobile Navigation */
  .navbar-nav {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    height: calc(100vh - 80px);
    background: var(--bg-card);
    flex-direction: column;
    padding: 1.5rem;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    gap: 0;
  }

  .navbar-nav.active {
    transform: translateX(0);
  }

  .nav-item {
    width: 100%;
    border-bottom: 1px solid var(--border-color);
  }

  /* Dropdown Menu for Mobile */
  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    margin-top: 0.5rem;
    margin-left: 1rem;
    padding: 1rem;
    display: none;
    box-shadow: none;
    border-left: 2px solid var(--primary);
    background: var(--bg-secondary);
    min-width: auto;
  }

  .dropdown.active .dropdown-menu {
    display: block;
  }

  /* Optimize dropdown items for mobile */
  .dropdown-item {
    padding: 0.5rem 1rem;
    margin-bottom: 0.5rem;
  }

  .dropdown-item-title {
    font-size: 0.9rem;
    margin-bottom: 0.15rem;
  }

  .dropdown-item-desc {
    font-size: 0.75rem;
    line-height: 1.3;
  }

  /* Category headers in dropdowns */
  .dropdown-menu > div[style*="font-weight: 700"] {
    padding: 0.4rem 0.5rem !important;
    font-size: 0.7rem !important;
    margin-top: 0.5rem !important;
  }

  .dropdown-menu > div[style*="font-weight: 700"]:first-child {
    margin-top: 0 !important;
  }

  /* Navbar controls in mobile */
  .navbar-controls {
    width: 100%;
    justify-content: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
  }

  /* Main CTA section */
  .cta-section {
    padding: 2rem 1rem;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .hero h1 {
    font-size: 2rem !important;
  }

  .features-grid {
    grid-template-columns: 1fr !important;
  }
}
