/* ==========================================
   HEADER & NAVIGATION
   ========================================== */

/* Announcement Banner */
.announcement-banner {
  background: var(--theme-primary);
  color: var(--theme-text-alt);
  text-align: center;
  padding: 12px 0;
  font-weight: 700;
  font-size: 14px;
  animation: slideDown 0.8s ease-out;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  border-bottom: 3px solid var(--theme-border);
  transition: all 0.5s ease;
}

.announcement-banner span {
  display: inline-block;
  padding-left: 100%;
  animation: marquee 20s linear infinite;
}

.announcement-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  animation: shine 3s infinite;
}

/* Header */
header {
  background: var(--theme-bg-section);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 4px solid var(--theme-border);
  transition: all 0.5s ease;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
}

.header-logo-text {
  font-weight: 800;
  font-size: 20px;
  color: var(--theme-text-main);
  letter-spacing: -0.5px;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 8px 16px;
  border-radius: 8px;
  border: 2px solid transparent;
}

.header-logo-text:hover {
  border-color: var(--theme-primary);
  transform: scale(1.05);
}

.header-logo-text:active {
  transform: scale(0.95);
}

.header-logo-text:focus {
  outline: none;
}

.header-logo-text:focus-visible {
  outline: none;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 15px;
}

/* Language Switcher */
.language-switcher {
  display: flex;
  gap: 5px;
  background: #f0f0f0;
  border-radius: 20px;
  padding: 3px;
}

.lang-btn {
  background: none;
  border: none;
  padding: 6px 12px;
  border-radius: 16px;
  font-weight: 600;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #666;
}

.lang-btn.active {
  background: var(--theme-primary);
  color: var(--theme-text-alt);
  box-shadow: 0 0 10px var(--theme-primary);
  transition: all 0.5s ease;
}

.lang-btn:hover:not(.active) {
  background: #ddd;
}

/* Menu Toggle */
.menu-toggle {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 5px;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background: #222;
  transition: all 0.3s;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(7px, 7px);
}

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

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* Navigation */
nav {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background: #fff;
}

nav.nav-open {
  max-height: 100vh;
  overflow-y: auto;
}

nav a {
  display: block;
  padding: 15px 20px;
  color: #222;
  text-decoration: none;
  font-weight: 600;
  border-top: 1px solid #eee;
  transition: background 0.2s;
}

nav a:hover {
  background: var(--theme-bg-section);
  color: var(--theme-primary);
  border-left: 4px solid var(--theme-border);
  padding-left: 16px;
}

/* Desktop Navigation */
@media (min-width: 768px) {
  .header-logo-text {
    font-size: 24px;
  }

  .menu-toggle {
    display: none;
  }

  nav {
    max-height: none;
    display: flex;
    gap: 5px;
  }

  nav a {
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
  }
}