/**
 * SITE HEADER & EDITORIAL NAVIGATION
 * Floating Glassmorphic Pill Bar, Brand Monogram, Bilingual & Audio Controls
 */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  transition: background-color var(--transition-smooth), backdrop-filter var(--transition-smooth), border-color var(--transition-smooth), height var(--transition-smooth);
}

.site-header.header-scrolled {
  height: 70px;
  background-color: rgba(5, 5, 8, 0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Brand Presence & Monogram */
.brand-presence {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-monogram-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(229, 184, 105, 0.15), rgba(121, 82, 255, 0.15));
  border: 1px solid var(--border-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--accent-gold);
  box-shadow: 0 0 20px rgba(229, 184, 105, 0.15);
  transition: var(--transition-fast);
}

.brand-presence:hover .brand-monogram-circle {
  transform: scale(1.05) rotate(5deg);
  border-color: var(--accent-gold-light);
  box-shadow: 0 0 25px rgba(229, 184, 105, 0.35);
}

.brand-text-block {
  display: flex;
  flex-direction: column;
}

.brand-primary-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  line-height: 1.2;
}

.brand-discipline-tag {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Navigation Links */
.header-nav {
  display: none;
  align-items: center;
  gap: clamp(16px, 2.5vw, 32px);
  background: rgba(255, 255, 255, 0.03);
  padding: 8px 24px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(12px);
}

@media (min-width: 992px) {
  .header-nav {
    display: flex;
  }
}

.nav-link {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: 4px 0;
  transition: color var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent-gold);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-gold);
  border-radius: 2px;
  transition: width var(--transition-smooth);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Header Actions Dock */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Sound Toggle Button */
.audio-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: var(--transition-fast);
}

.audio-toggle-btn:hover {
  border-color: var(--border-medium);
  color: var(--text-primary);
}

.audio-toggle-btn.audio-active {
  background: rgba(229, 184, 105, 0.1);
  border-color: var(--border-gold);
  color: var(--accent-gold);
}

.sound-wave-bars {
  display: flex;
  align-items: flex-end;
  gap: 2.5px;
  height: 12px;
}

.sound-bar {
  width: 2.5px;
  background-color: currentColor;
  border-radius: 2px;
  height: 4px;
  transition: height 0.2s ease;
}

.audio-active .sound-bar:nth-child(1) { animation: waveAnim 0.8s ease-in-out infinite alternate; }
.audio-active .sound-bar:nth-child(2) { animation: waveAnim 0.8s ease-in-out infinite alternate 0.2s; }
.audio-active .sound-bar:nth-child(3) { animation: waveAnim 0.8s ease-in-out infinite alternate 0.4s; }

@keyframes waveAnim {
  0% { height: 4px; }
  100% { height: 13px; }
}

/* Bilingual Language Toggle */
.lang-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-primary);
  transition: var(--transition-fast);
}

.lang-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: var(--border-medium);
}

/* Header Contact Pill CTA */
.header-cta-pill {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-dark));
  color: #000;
  border-radius: var(--radius-full);
  font-size: 0.84rem;
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(229, 184, 105, 0.25);
  transition: var(--transition-smooth);
}

@media (min-width: 768px) {
  .header-cta-pill {
    display: inline-flex;
  }
}

.header-cta-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(229, 184, 105, 0.4);
  background: linear-gradient(135deg, var(--accent-gold-light), var(--accent-gold));
}

.header-cta-pill .cta-arrow {
  transition: transform var(--transition-fast);
}

.header-cta-pill:hover .cta-arrow {
  transform: translate(2px, -2px);
}

html[dir="rtl"] .header-cta-pill:hover .cta-arrow {
  transform: translate(-2px, -2px);
}

/* Mobile Hamburger Toggle */
.mobile-menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  transition: var(--transition-fast);
}

@media (min-width: 992px) {
  .mobile-menu-toggle {
    display: none;
  }
}

.mobile-menu-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Mobile Drawer & Backdrop */
.drawer-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-smooth);
}

.drawer-backdrop.visible {
  opacity: 1;
  pointer-events: auto;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: min(380px, 85vw);
  height: 100vh;
  background: #080910;
  border-left: 1px solid var(--border-medium);
  z-index: 2001;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: right var(--transition-smooth);
  overflow-y: auto;
}

html[dir="rtl"] .mobile-drawer {
  right: auto;
  left: -100%;
  border-left: none;
  border-right: 1px solid var(--border-medium);
  transition: left var(--transition-smooth);
}

.mobile-drawer.open {
  right: 0;
}

html[dir="rtl"] .mobile-drawer.open {
  left: 0;
}

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-subtle);
}

.drawer-close-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  font-size: 1.1rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.drawer-nav-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.drawer-nav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  transition: var(--transition-fast);
}

.drawer-nav-item:hover {
  background: rgba(229, 184, 105, 0.08);
  border-color: var(--border-gold);
  color: var(--accent-gold);
}

.drawer-footer {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
