/* Site Header Styles */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;
  background-color: transparent;
  padding: 1rem 0;
}

.site-header__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

/* Branding/Logo */
.site-branding {
  flex-shrink: 0;
}

.site-logo-link {
  display: block;
  line-height: 0;
}

.custom-logo {
  height: 2rem;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
  transition: transform 0.3s ease;
}

.custom-logo:hover {
  transform: scale(1.05);
}

.site-title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
}

.site-title a {
  color: #fff;
  text-decoration: none;
}

.site-description {
  display: none;
}

/* Desktop Navigation */
.main-navigation {
  display: none;
  align-items: center;
  gap: 2rem;
}

.main-navigation ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 2rem;
}

.main-navigation a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  padding: 0.5rem 0;
  position: relative;
  transition: color 0.3s ease;
}

.main-navigation a:hover {
  color: rgba(255, 255, 255, 0.8);
}

.main-navigation a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #fff;
  transition: width 0.3s ease;
}

.main-navigation a:hover::after {
  width: 100%;
}

/* Language Switcher */
.language-switcher {
  margin-left: 2rem;
}

.language-switcher__list {
  display: flex;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}

.language-switcher__list li {
  position: relative;
}

.language-switcher__list a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.875rem;
  padding: 0.25rem 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 0.25rem;
  transition: all 0.3s ease;
}

.language-switcher__list a:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
}

/* RTL Adjustments for Language Switcher */
[dir="rtl"] .language-switcher {
  margin-left: 0;
  margin-right: 2rem;
}


/* Mobile Bottom Navigation */
.mobile-bottom-nav {
  display: flex;
  position: fixed;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  z-index: 9995;
  height: 4rem;
  border-radius: 0.5rem;
  max-width: 20rem;
  margin: 0 auto;
  padding: 0.5rem;
}

.mobile-bottom-nav__item {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  flex: 1;
  height: 100%;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: all 0.3s ease;
  border-radius: 0.25rem;
  position: relative;
}

.mobile-bottom-nav__item:hover,
.mobile-bottom-nav__item--active {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.mobile-bottom-nav__item-text {
  font-size: 0.75rem;
  font-weight: 500;
  margin-top: 0.25rem;
}

/* Mobile Language Switcher */
.mobile-bottom-nav__languages {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  padding: 0 0.5rem;
  border-left: 1px solid rgba(255, 255, 255, 0.2);
}

[dir="rtl"] .mobile-bottom-nav__languages {
  border-left: none;
  border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.mobile-bottom-nav__lang {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  transition: all 0.3s ease;
}

.mobile-bottom-nav__lang:hover,
.mobile-bottom-nav__lang--active {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}


/* Mobile Styles - Logo Centering */
@media (max-width: 47.9375rem) {
  .site-header__inner {
    justify-content: center;
  }
  
  .site-branding {
    margin: 0 auto;
  }
  
  /* Hide desktop language switcher on mobile */
  .language-switcher {
    display: none;
  }
}

/* Tablet Styles */
@media (min-width: 48rem) {
  .custom-logo {
    height: 2.25rem;
  }
  
  .mobile-bottom-nav {
    max-width: 24rem;
    height: 4.5rem;
  }
  
  .mobile-bottom-nav__item-text {
    font-size: 0.875rem;
  }
}

/* Desktop Styles */
@media (min-width: 64rem) {
  .site-header {
    padding: 1.5rem 0;
  }
  
  .custom-logo {
    height: 2.75rem;
  }
  
  /* Show desktop navigation */
  .main-navigation {
    display: flex;
  }
  
  /* Hide mobile elements */
  .mobile-bottom-nav {
    display: none !important;
  }
}

/* Large Desktop */
@media (min-width: 80rem) {
  .site-header {
    padding: 2rem 0;
  }
  
  .main-navigation ul {
    gap: 3rem;
  }
  
  .main-navigation a {
    font-size: 1.125rem;
  }
}