/* Header Styles */

#header-container {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-sticky);
  width: 100%;
}

.site-header {
  background: var(--bg-primary);
  box-shadow: var(--shadow-sm);
  width: 100%;
  height: var(--header-height);
}

.header-container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
  height: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--spacing-xl);
}

.header-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  text-decoration: none;
  color: var(--text-primary);
}

.logo-img {
  height: 50px;
  width: auto;
}

.logo-text {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  justify-self: center;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: var(--spacing-md);
  padding: 0;
  margin: 0;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.nav-item {
  margin: 0;
}

.nav-link {
  color: var(--text-secondary);
  font-weight: var(--font-weight-medium);
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  display: block;
  text-align: center;
}

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

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--spacing-sm);
  z-index: var(--z-fixed);
  flex-shrink: 0;
  justify-self: end;
}

.hamburger-line {
  width: 25px;
  height: 3px;
  background: var(--text-primary);
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
}

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

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

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

@media (max-width: 1200px) {
  .mobile-menu-toggle {
    display: flex;
  }
  
  .main-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--bg-primary);
    box-shadow: var(--shadow-lg);
    transform: translateX(-100%);
    transition: transform var(--transition-base);
    z-index: var(--z-fixed);
    height: calc(100vh - var(--header-height));
    overflow-y: auto;
  }
  
  .main-nav.active {
    transform: translateX(0);
  }
  
  .nav-list {
    flex-direction: column;
    align-items: stretch;
    padding: var(--spacing-xl);
    gap: 0;
  }
  
  .nav-link {
    padding: var(--spacing-md);
    border-bottom: 1px solid var(--border-color-light);
  }
}

@media (max-width: 768px) {
  body {
    padding-top: var(--header-height-mobile);
  }
  
  .site-header {
    height: var(--header-height-mobile);
  }
  
  .main-nav {
    top: var(--header-height-mobile);
    height: calc(100vh - var(--header-height-mobile));
  }
}
