/* Header and Navigation Styles - Both Desktop and Mobile */

/* Base Header Styles */
.header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  padding: 1rem 2rem;
  background-color: #ffffff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo-link {
  display: flex;
  align-items: center;
  margin-right: auto;
}

.logo-container {
  display: flex;
  align-items: center;
  margin-right: auto;
}

.logo-round {
  margin-right: 0.75rem;
  width: auto;
  height: 50px;
}

.logo-round img {
  width: auto;
  height: 100%;
  object-fit: cover;
}

.brand-title {
  font-weight: 600;
  font-size: 1.125rem;
  color: #333;
}

.brand-sub {
  font-size: 0.75rem;
  font-weight: 500;
  color: #2563eb;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Desktop Navigation */
.desktop-nav {
  display: flex;
  gap: 2rem;
  margin-right: 2rem;
}

.desktop-nav a {
  color: #555;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.desktop-nav a:hover {
  color: #2563eb;
}

.desktop-nav .active {
  color: #2563eb;
  font-weight: 600;
  padding-bottom: 2px;
  border-bottom: 2px solid #2563eb;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.flag {
  display: flex;
  align-items: center;
}

.search-icon {
  width: 20px;
  height: 20px;
  stroke: #666;
  cursor: pointer;
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1000;
  width: 30px;
  height: 24px;
}

.mobile-menu-toggle .bar {
  display: block;
  width: 100%;
  height: 3px;
  background-color: #333;
  margin: 5px 0;
  transition: transform 0.3s ease;
  border-radius: 2px;
}

/* Mobile Navigation Panel */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ffffff;
  z-index: 999;
  padding: 70px 20px 20px;
  transform: translateX(100%);
  transition: transform 0.3s ease-in-out;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.mobile-nav.open {
  transform: translateX(0);
}

.mobile-nav nav {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.mobile-nav a {
  padding: 15px 0;
  font-size: 18px;
  color: #333;
  text-decoration: none;
  border-bottom: 1px solid #eee;
  font-weight: 500;
  transition: color 0.2s;
}

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

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

.mobile-nav-bottom {
  margin-top: auto;
  padding-top: 20px;
}

body.menu-open {
  overflow: hidden;
}

/* Close Button Styles */
.mobile-nav-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1001;
  color: #333;
  border-radius: 50%;
  transition: background-color 0.2s, color 0.2s;
}

.mobile-nav-close:hover {
  background-color: rgba(0, 0, 0, 0.05);
  color: #2563eb;
}

.mobile-nav-close svg {
  width: 24px;
  height: 24px;
}

/* Ensure proper spacing for navigation items */
.mobile-nav nav {
  padding-bottom: 20px;
}

/* Media Query for Mobile View */
@media (max-width: 767px) {
  .header {
    padding: 0.85rem 1rem;
  }
  
  .mobile-menu-toggle {
    display: block;
  }
  
  /* Keep desktop-nav visible as requested */
  .desktop-nav {
    display: none;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
    margin: 0.5rem 0 0;
    gap: 0.75rem;
  }
  
  .desktop-nav a {
    font-size: 0.85rem;
    padding: 0.25rem 0.5rem;
  }
  
  .header-right {
    display: none;
  }
  
  .mobile-nav {
    display: block;
  }
  
  .brand-title {
    font-size: 1rem;
  }
  
  .brand-sub {
    font-size: 0.7rem;
  }
}