/**
 * header.css - Auronix minimal top header (new, from scratch)
 * Transparent/blurred background, subtle glow bottom border.
 * Logo (small), language selector, sound toggle, hamburger (mobile).
 * Slight shrink on scroll. No old navbar styles.
 */

/* -------------------------------------------------------------------------
   Top header: fixed, minimal, blur
   ------------------------------------------------------------------------- */
.auronix-top-header {
  position: fixed;
  top: 0;
  left: 240px;
  right: 0;
  z-index: 100;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(220, 20, 60, 0.15);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2), 0 0 40px rgba(220, 20, 60, 0.04);
  transition: min-height 0.3s ease, padding 0.3s ease, left 0.3s ease;
}

/* Shrink on scroll */
.auronix-top-header.is-scrolled {
  min-height: 52px;
  padding: 0 1.25rem;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.3);
}

/* -------------------------------------------------------------------------
   Logo (small, optional visibility)
   ------------------------------------------------------------------------- */
.auronix-top-header-logo a {
  font-weight: 700;
  font-size: 1.15rem;
  text-decoration: none;
  background: linear-gradient(135deg, #fff 0%, #e91e63 70%, #dc143c 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* -------------------------------------------------------------------------
   Actions: lang, sound, hamburger
   ------------------------------------------------------------------------- */
.auronix-top-header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Language selector */
.auronix-lang-btn {
  padding: 0.5rem 0.9rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(220, 20, 60, 0.25);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
  cursor: pointer;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.auronix-lang-btn:hover {
  border-color: rgba(233, 30, 99, 0.5);
  box-shadow: 0 0 16px rgba(220, 20, 60, 0.2);
  background: rgba(220, 20, 60, 0.08);
}

.auronix-lang-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 4px;
  min-width: 140px;
  padding: 0.5rem;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(220, 20, 60, 0.2);
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  z-index: 1001;
}

.auronix-lang-dropdown.hidden {
  display: none;
}

.auronix-lang-dropdown button {
  display: block;
  width: 100%;
  padding: 0.5rem 0.75rem;
  text-align: left;
  background: transparent;
  border: none;
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
  cursor: pointer;
}

.auronix-lang-dropdown button:hover,
.auronix-lang-dropdown button.active {
  background: rgba(220, 20, 60, 0.15);
  color: #e91e63;
}

/* Sound toggle */
.auronix-sound-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(220, 20, 60, 0.25);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
  cursor: pointer;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.auronix-sound-btn:hover {
  border-color: rgba(233, 30, 99, 0.5);
  box-shadow: 0 0 12px rgba(220, 20, 60, 0.2);
}

.auronix-sound-btn[aria-pressed="true"] {
  box-shadow: 0 0 16px rgba(233, 30, 99, 0.4);
}

/* Hamburger (mobile only) */
.auronix-hamburger {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(220, 20, 60, 0.3);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.auronix-hamburger:hover {
  border-color: rgba(233, 30, 99, 0.5);
  box-shadow: 0 0 12px rgba(220, 20, 60, 0.2);
}

.auronix-hamburger-icon {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 20px;
  height: 16px;
}

.auronix-hamburger-icon span {
  display: block;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.auronix-hamburger.is-open .auronix-hamburger-icon span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.auronix-hamburger.is-open .auronix-hamburger-icon span:nth-child(2) {
  opacity: 0;
}

.auronix-hamburger.is-open .auronix-hamburger-icon span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 768px) {
  .auronix-top-header {
    left: 0;
    min-height: 56px;
    padding: 0 1rem;
  }

  .auronix-top-header.is-scrolled {
    min-height: 48px;
  }

  .auronix-hamburger {
    display: flex;
  }
}
