/* =============================================================================
   HEADER STYLES - SAFI UI SPECIFICATION
   ============================================================================= */

.site-header {
  background: #ffffff;
 border-bottom: 1px solid var(--color-border);
  padding: 0.1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Logo Section - Left Aligned */
.logo-section {
  flex-shrink: 0;
}

.logo-link {
  display: block;
  transition: opacity 0.3s ease;
}

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

.site-logo {
  width: auto;
  max-width: 300px;
}

/* Main Navigation - Center Aligned */
.main-nav {
  flex: 1;
  display: flex;
  justify-content: right;
}

.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0;
}

.nav-menu .nav-item {
  position: relative;
}

.nav-menu .nav-item:not(:last-child)::after {
  content: '|';
  color: #EAEAEA;
  margin: 0 1.5rem;
  font-weight: normal;
}

.nav-menu .nav-item a {
  text-decoration: none;
  color: #1A2B4D;
  font-family: 'Anek Latin', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 300;
  text-transform: uppercase;
  font-size: 1rem;
  letter-spacing: 0.2px;
  padding: 0.2rem 0;
  transition: color 0.3s ease;
  white-space: nowrap;
}

.nav-menu .nav-item a:hover {
  color: #1A2B4D;
  opacity: 0.7;
}

.nav-menu .nav-item.current-menu-item a {
  color: #1A2B4D;
  font-weight: 300;
  position: relative;
}

.nav-menu .nav-item.current-menu-item a::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  right: 0;
  height: 1px;
  background: #1A2B4D;
  border-radius: 1px;
}

/* Vertical Divider - FIXED */
.header-divider {
  width: 1px;
  height: 100px;
  background: var(--color-border);
  flex-shrink: 0;
  margin: 0 1.5rem;
  align-self: stretch;
}

/* Authentication Buttons - FIXED COLORS & ALIGNMENT */
.auth-buttons {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  flex-shrink: 0;
  width: 120px;
}

.btn-auth {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1.25rem;
  font-family: 'Anek Latin', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 0.75rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 20px;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 1px solid;
  width: 100%;
  text-align: center;
  height: 36px;
}

.btn-auth:focus {
  outline: 2px solid #1A2B4D;
  outline-offset: 2px;
}

.btn-auth--login {
  background: #ffffff;
  color: #1A2B4D;
  border-color: #1A2B4D;
}

.btn-auth--login:hover {
  background: #f8fafc;
  color: #1A2B4D;
  border-color: #1A2B4D;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(26, 43, 77, 0.1);
}

.btn-auth--register {
  background: #1A2B4D;
  color: #ffffff;
  border-color: #1A2B4D;
}

.btn-auth--register:hover {
  background: #0f1419;
  color: #ffffff;
  border-color: #0f1419;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(26, 43, 77, 0.2);
}

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

.hamburger-line {
  width: 25px;
  height: 3px;
  background: #1A2B4D;
  transition: all 0.3s ease;
  border-radius: 2px;
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  background: #ffffff;
  border-top: 1px solid #EAEAEA;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 1000;
}

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

.mobile-menu-inner {
  padding: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #EAEAEA;
}

.mobile-menu-title {
  font-family: 'Anek Latin', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 500;
  color: #1A2B4D;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.875rem;
}

.mobile-menu-close {
  background: none;
  border: none;
  color: #64748b;
  cursor: pointer;
  font-size: 1.25rem;
  padding: 0.5rem;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.mobile-menu-close:hover {
  color: #1A2B4D;
  background: #f8fafc;
}

.mobile-nav-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  margin-bottom: 2rem;
}

.mobile-nav-menu li {
  margin-bottom: 0.5rem;
}

.mobile-nav-menu li a {
  display: block;
  padding: 1rem 0;
  color: #1A2B4D;
  font-family: 'Anek Latin', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  font-size: 1rem;
  letter-spacing: 0.5px;
  text-decoration: none;
  border-bottom: 1px solid #f1f5f9;
  transition: all 0.3s ease;
}

.mobile-nav-menu li a:hover {
  color: #8b775b;
  padding-left: 0.5rem;
}

.mobile-nav-menu li a[aria-current="page"] {
  color: #8b775b;
  font-weight: 500;
}

.mobile-auth-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid #EAEAEA;
}

.btn-auth--mobile {
  width: 100%;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  height: 44px;
}

.mobile-contact-info {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #EAEAEA;
}

.mobile-contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 0;
  color: #64748b;
  text-decoration: none;
  font-family: 'Anek Latin', -apple-system, BlinkMacSystemFont, sans-serif;
  transition: color 0.3s ease;
}

.mobile-contact-item:hover {
  color: #1A2B4D;
}

.mobile-contact-item i {
  color: #8b775b;
  width: 20px;
  text-align: center;
}

/* Header Responsive Design */
@media (max-width: 1024px) {
  .nav-menu .nav-item:not(:last-child)::after {
    margin: 0 1rem;
  }
  
  .nav-menu .nav-item a {
    font-size: 0.75rem;
  }
  
  .auth-buttons {
    min-width: 100px;
  }
  
  .btn-auth {
    padding: 0.375rem 1rem;
    font-size: 0.7rem;
    min-width: 90px;
    height: 32px;
  }
}

@media (max-width: 768px) {
  .site-header {
    padding: 0.75rem 0;
  }
  
  .header-inner {
    gap: 1rem;
  }
  
  .main-nav {
    display: none;
  }
  
  .header-divider {
    display: none;
  }
  
  .auth-buttons {
    display: none;
  }
  
  .mobile-menu-toggle {
    display: flex;
  }
  
  .site-logo {
    height: 40px;
  }
}

@media (max-width: 480px) {
  .site-logo {
    height: 35px;
  }
  
  .mobile-menu-inner {
    padding: 1rem;
  }
}
