/* Header Component Styles */
.header {
  background: white; /* Correct production header color */
  color: #1F2937;
  padding: 1rem 2rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-landing {
  background: white; /* Correct production header color */
  color: #1F2937;
}

.header-dashboard {
  background: white; /* Correct production header color */
  color: #1F2937;
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-section {
  display: flex;
  align-items: center;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #4A7DEF;
  font-family: 'Inter', sans-serif;
}

/* Make logo clickable with proper styling */
.logo-link {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: opacity 0.2s ease;
  display: inline-block;
}

.logo-link:hover {
  opacity: 0.8;
}

.logo-link:focus {
  outline: 2px solid #2563eb;
  outline-offset: 4px;
  border-radius: 4px;
}

/* Ensure logo maintains its styling when inside link */
.logo-link .logo-section {
  display: flex;
  align-items: center;
}

.logo-link .logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #4A7DEF;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
}

.logo-section img,
.logo-img {
  height: 40px;
  width: auto;
  filter: brightness(0) invert(1);
}

/* Landing Navigation */
.nav-landing {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-landing a {
  color: rgb(107, 114, 128);
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  transition: color 0.2s;
}

.nav-landing a:hover {
  color: rgb(59, 130, 246);
}

.nav-landing a.active {
  color: rgb(59, 130, 246);
  font-weight: 600;
}

.nav-landing .demo-link {
  color: rgb(59, 130, 246);
  font-weight: 600;
}

.nav-landing .demo-link:hover {
  color: rgb(37, 99, 235);
}

/* Dashboard Navigation */
.nav-dashboard {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

/* Primary action (Dashboard/current page) - solid blue */
.nav-dashboard a {
  color: rgb(59, 130, 246) !important;
  text-decoration: none;
  font-weight: 600;
  padding: 0.5rem 1.5rem;
  border-radius: 0.5rem;
  transition: all 0.2s ease;
  background: transparent;
  border: 2px solid transparent;
}

.nav-dashboard a:hover {
  background: rgba(59, 130, 246, 0.1) !important;
  color: rgb(59, 130, 246) !important;
}

.nav-dashboard a.active {
  background: rgba(59, 130, 246, 0.1) !important;
  color: rgb(59, 130, 246) !important;
  font-weight: 600;
  border: 2px solid rgba(59, 130, 246, 0.3);
}

/* Secondary action (Settings) - transparent with border */
.nav-dashboard a[href="/settings"] {
  border: 2px solid rgba(59, 130, 246, 0.3);
  background: transparent;
}

.nav-dashboard a[href="/settings"]:hover {
  background: rgba(59, 130, 246, 0.1) !important;
  border-color: rgba(59, 130, 246, 0.5);
}

.nav-dashboard a[href="/settings"].active {
  background: rgba(59, 130, 246, 0.1) !important;
  border-color: rgba(59, 130, 246, 0.5);
}

/* Logout button - outlined/ghost style */
.btn-secondary {
  background: transparent !important;
  color: rgb(59, 130, 246) !important;
  border: 1px solid rgba(59, 130, 246, 0.5) !important;
  padding: 0.5rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  font-size: inherit;
}

.btn-secondary:hover {
  background: rgba(59, 130, 246, 0.1) !important;
  border-color: rgba(59, 130, 246, 0.7) !important;
}

/* Header Actions */
.header-actions {
  display: flex !important;
  align-items: center;
}

.cta-button {
  background: #3B82F6 !important;
  color: white !important;
  border: none;
  padding: 1rem 2rem;
  border-radius: 0.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: all 0.3s;
  white-space: nowrap;
  height: 3.5rem;
  box-sizing: border-box;
  text-decoration: none;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
}

.cta-button:hover {
  background: #2563EB;
  transform: translateY(-1px);
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 30px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}

.hamburger-line {
  width: 100%;
  height: 3px;
  background: #1F2937;
  transition: all 0.3s;
}

.mobile-menu-btn.open .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-btn.open .hamburger-line:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.open .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 30;
}

.mobile-menu-overlay.show {
  opacity: 1;
  visibility: visible;
}

/* Mobile Navigation */
.mobile-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 400px;
  height: 100vh;
  background: white;
  box-shadow: -4px 0 6px rgba(0,0,0,0.1);
  transition: right 0.3s ease;
  z-index: 40;
  overflow-y: auto;
}

.mobile-nav.open {
  right: 0;
}

.nav-mobile {
  padding: 4rem 1.5rem 1.5rem 1.5rem;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.mobile-nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
}

.mobile-nav-link {
  display: block;
  padding: 1rem 0;
  color: #4b5563;
  text-decoration: none;
  border-bottom: 1px solid #E5E7EB;
  transition: color 0.3s;
  font-size: 1.1rem;
  font-weight: 500;
}

.mobile-nav-link:hover {
  color: #2563eb;
}

.mobile-nav-link.active {
  color: #2563eb;
  font-weight: 600;
}

.mobile-nav-link.demo-link {
  color: #2563eb;
  font-weight: 600;
}

.mobile-nav-link.demo-link:hover {
  color: #2563EB;
}

.mobile-cta-button {
  display: block;
  width: 100%;
  margin-top: 2rem;
  padding: 1rem 1.5rem;
  background: #2563eb;
  color: white;
  text-decoration: none;
  border-radius: 0.5rem;
  text-align: center;
  font-weight: 600;
  font-size: 1.1rem;
  transition: background 0.3s;
  align-self: flex-end;
}

.mobile-cta-button:hover {
  background: #1d4ed8;
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-landing,
  .nav-dashboard {
    display: none;
  }
  
  .header-actions {
    display: none;
  }
  
  .mobile-menu-btn {
    display: flex;
  }
  
  .header {
    padding: 1rem;
  }
  
  .mobile-nav {
    display: block;
  }
}

@media (min-width: 769px) {
  .mobile-nav {
    display: none !important;
  }
  
  .mobile-menu-overlay {
    display: none !important;
  }
  
  .header-actions {
    display: flex !important;
  }
  
  .cta-button {
    display: inline-flex !important;
  }
}

/* Additional responsive adjustments */
@media (max-width: 480px) {
  .header {
    padding: 0.75rem;
  }
  
  .logo-text {
    font-size: 1.25rem;
  }
  
  .mobile-nav {
    width: 90%;
    max-width: 350px;
  }
  
  .nav-mobile {
    padding: 3.5rem 1rem 1rem 1rem;
  }
  
  .mobile-nav-link {
    padding: 0.875rem 0;
    font-size: 1rem;
  }
}

/* Focus states for accessibility */
.nav-landing a:focus,
.nav-dashboard a:focus,
.mobile-nav-link:focus,
.cta-button:focus,
.mobile-cta-button:focus,
.mobile-menu-btn:focus {
  outline: 2px solid #3B82F6;
  outline-offset: 2px;
}

/* Smooth transitions */
.header,
.nav-landing a,
.nav-dashboard a,
.mobile-nav-link,
.cta-button,
.mobile-cta-button {
  transition: all 0.2s ease;
} 