/* header.css - Header Component Styles */

/* Logo nav link */
/* Logo Navigation Link */
.logo-nav-link {
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
  border-radius: 0.5rem;
  padding: 0.25rem;
  margin: -0.25rem;
}

.logo-nav-link:hover {
  background-color: #f8fafc;
  transform: translateY(-1px);
}

.logo-nav-link:hover h1 {
  color: #f59e0b;
}

.logo-nav-link:hover p {
  color: #d97706;
}

/* Ensure the logo maintains its styling */
.logo-nav-link h1 {
  color: #1e293b;
  transition: color 0.2s ease;
}

.header-bar {
  align-items: center;
}

.header-desktop-nav {
  flex-wrap: wrap;
  row-gap: 0.5rem;
}

.user-menu-shell {
  min-height: 3rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.875rem;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.user-menu-meta {
  min-width: 0;
}

.user-menu-meta p {
  line-height: 1.2;
}

.user-menu-dropdown {
  overflow: hidden;
}

.logo-nav-link p {
  color: #6b7280;
  transition: color 0.2s ease;
}

/* Desktop Navigation */
.nav-link {
  display: flex;
  align-items: center;
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 0.5rem;
  transition: all 0.2s;
  color: #64748b;
  text-decoration: none;
  margin: 0 0.5rem;
}

.nav-link:hover {
  color: #1e293b;
  background-color: #f1f5f9;
}

.nav-link.active {
  color: #f59e0b;
  background-color: #fef3c7;
  font-weight: 600;
}

.nav-link i {
  width: 1.25rem;
  height: 1.25rem;
  margin-right: 0.75rem;
}

.nav-link.hidden {
  display: none !important;
}

/* Mobile Navigation */
.mobile-nav-link {
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 0.5rem;
  transition: all 0.2s;
  color: #64748b;
  text-decoration: none;
  margin: 0.125rem 0;
}

.mobile-nav-link:hover {
  color: #1e293b;
  background-color: #f1f5f9;
}

.mobile-nav-link.active {
  color: #f59e0b;
  background-color: #fef3c7;
  font-weight: 600;
}

.mobile-nav-link i {
  width: 1.25rem;
  height: 1.25rem;
  margin-right: 0.75rem;
  text-align: center;
}

.mobile-nav-link.hidden {
  display: none !important;
}

/* Mobile Menu Animation */
#mobile-menu {
  transition: all 0.3s ease-in-out;
}

#mobile-menu.hidden {
  display: none !important;
}

/* Force hide mobile menu on large screens */
@media (min-width: 1024px) {
  #mobile-menu {
    display: none !important;
  }

  /* Ensure mobile elements are hidden */
  .lg\:hidden {
    display: none !important;
  }
}

/* Force hide desktop nav on smaller screens */
@media (max-width: 1023px) {
  nav.hidden.lg\:flex {
    display: none !important;
  }

  .hidden.lg\:flex {
    display: none !important;
  }
}

@media (max-width: 1279px) {
  .user-menu-shell {
    padding: 0.5rem;
  }
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  /* Hide chapter name on tablet */
  .hive-logo p {
    display: none;
  }
}

@media (min-width: 1024px) {
  .nav-link {
    margin: 0 0.25rem;
    padding: 0.65rem 1rem;
  }

  .nav-link i {
    margin-right: 0.5rem;
  }
}

@media (max-width: 640px) {
  /* Reduce logo text size on very small screens */
  .hive-logo h1 {
    font-size: 1.125rem;
  }

  /* Adjust notification badge size */
  .notification-badge {
    width: 1rem;
    height: 1rem;
    font-size: 0.625rem;
  }
}

@media (max-width: 480px) {
  /* Further adjustments for very small screens */
  .nav-link {
    margin: 0 0.25rem;
    padding: 0.5rem 1rem;
  }

  .mobile-nav-link {
    padding: 0.625rem 0.75rem;
  }
}
