/* Shared Navigation Bar Styles (extracted from people.html)
   Include this file in every page that uses the standard Halfbaked nav bar.
*/

:root {
  /* Keep header height centralized for JS/scroll offset usage */
  --nav-height: 70px;
}

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

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.nav-logo h2 {
  color: #09afa5;
  font-size: 1.8em;
  font-weight: 700;
  margin: 0;
}

/* Main Nav Links */
.nav-menu {
  display: flex;
  gap: 30px;
  align-items: center;
  flex: 1;
  justify-content: flex-start;
}

.nav-link {
  color: #fff;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9em;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 8px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.nav-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(9, 175, 165, 0.2), transparent);
  transition: left 0.5s ease;
  pointer-events: none;
}

.nav-link:hover::before {
  left: 100%;
}

.nav-link:hover {
  color: #09afa5;
  background: rgba(9, 175, 165, 0.1);
  transform: translateY(-2px);
}

.nav-link i {
  font-size: 1.1em;
  transition: transform 0.3s ease;
}

.nav-link:hover i {
  transform: scale(1.1);
}

.nav-link.active {
  color: #09afa5;
  background: rgba(9, 175, 165, 0.2);
}

/* Download buttons */
.download-btn {
  background: linear-gradient(45deg, #09afa5, #0e8a7f);
  color: #fff !important;
  border: none;
  box-shadow: 0 4px 15px rgba(9, 175, 165, 0.3);
}

.download-btn:hover {
  background: linear-gradient(45deg, #0e8a7f, #09afa5);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(9, 175, 165, 0.4);
}

/* Mobile Navigation Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 5px;
  margin-left: auto;
}

.bar {
  width: 25px;
  height: 3px;
  background: #fff;
  margin: 3px 0;
  transition: 0.3s;
  border-radius: 2px;
}

.nav-toggle.active .bar:nth-child(1) {
  transform: rotate(-45deg) translate(-5px, 6px);
}
.nav-toggle.active .bar:nth-child(2) {
  opacity: 0;
}
.nav-toggle.active .bar:nth-child(3) {
  transform: rotate(45deg) translate(-5px, -6px);
}

/* Responsive */
@media (max-width: 768px) {
  .nav-container {
    justify-content: space-between;
    gap: 16px;
  }
  .nav-toggle {
    display: flex;
    margin-left: 0;
  }

  .nav-menu {
    position: fixed;
    top: var(--nav-height);
    left: -100%;
    width: 100%;
    height: calc(100vh - var(--nav-height));
    background: rgba(15, 32, 39, 1.0);
    backdrop-filter: blur(10px);
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 30px;
    padding: 40px 20px;
    transition: left 0.3s ease;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-link {
    font-size: 1.1em;
    padding: 12px 20px;
    width: 100%;
    max-width: 300px;
    text-align: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
  }

  .nav-logo h2 {
    font-size: 1.5em;
  }
}
