/* Header styles for Toolvirexa Events */
.tvx-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(20px);
  background: linear-gradient(90deg, rgba(5, 5, 9, 0.96), rgba(5, 5, 9, 0.94));
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.tvx-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding-block: 0.85rem;
}

/* Brand / logo */
.tvx-header__brand {
  display: flex;
  align-items: center;
}

.tvx-header__logo-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.tvx-header__logo-mark {
  width: 38px;
  height: 38px;
  border-radius: 16px;
  background: radial-gradient(circle at 30% 10%, #ffd977 0%, #f8c24a 32%, #1f7a4d 80%);
  box-shadow: var(--shadow-glow-gold);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.tvx-header__logo-chip {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 3px solid rgba(5, 5, 9, 0.9);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.4) inset;
  background: conic-gradient(from 45deg, #050509, #f8c24a, #1f7a4d, #801b32, #050509);
}

.tvx-header__logo-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.tvx-header__logo-title {
  font-family: var(--font-display);
  font-size: 0.98rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.tvx-header__logo-subtitle {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

/* Navigation */
.tvx-header__nav {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.tvx-header__nav-list {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  list-style: none;
  margin: 0;
  padding: 0;
}

.tvx-header__nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-text-muted);
  padding-block: 0.25rem;
}

.tvx-header__nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.15rem;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #f8c24a, #1f7a4d);
  transition: width var(--transition-base);
}

.tvx-header__nav-link:hover,
.tvx-header__nav-link:focus-visible {
  color: var(--color-primary-strong);
}

.tvx-header__nav-link:hover::after,
.tvx-header__nav-link:focus-visible::after {
  width: 100%;
}

.tvx-header__cta-btn {
  font-size: 0.78rem;
  padding-inline: 1.4rem;
  padding-block: 0.7rem;
}

/* Mobile toggle */
.tvx-header__toggle {
  display: none;
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: radial-gradient(circle at 0 0, rgba(248, 194, 74, 0.16), transparent 55%), rgba(6, 6, 14, 0.9);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.tvx-header__toggle:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
}

.tvx-header__toggle-bar {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: #ffffff;
  display: block;
  transition: transform var(--transition-base), opacity var(--transition-base), background-color var(--transition-base);
}

.tvx-header__toggle-bar + .tvx-header__toggle-bar {
  margin-top: 4px;
}

/* Toggle active state (controlled by JS) */
.tvx-header__toggle--open .tvx-header__toggle-bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.tvx-header__toggle--open .tvx-header__toggle-bar:nth-child(2) {
  opacity: 0;
}

.tvx-header__toggle--open .tvx-header__toggle-bar:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Responsive layout */
@media (max-width: 960px) {
  .tvx-header__toggle {
    display: inline-flex;
  }

  .tvx-header__nav {
    position: absolute;
    inset-inline: 0;
    top: 100%;
    padding-inline: var(--container-padding-x);
    padding-bottom: 0.75rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    background: radial-gradient(circle at top, rgba(20, 20, 31, 0.98) 0, rgba(5, 5, 9, 0.98) 55%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transform-origin: top;
    transform: scaleY(1);
  }

  /* Hidden state when JS adds the class */
  .tvx-header__nav--collapsed {
    display: none;
  }

  .tvx-header__nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
    padding-top: 0.35rem;
  }

  .tvx-header__nav-link {
    padding-block: 0.3rem;
    font-size: 0.82rem;
  }

  .tvx-header__cta {
    padding-top: 0.35rem;
  }

  .tvx-header__cta-btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .tvx-header__logo-subtitle {
    display: none;
  }
}

/* No-JS fallback: show nav as block on small screens */
@media (max-width: 960px) {
  .no-js .tvx-header__nav {
    position: static;
    display: flex !important;
    border-bottom: none;
    background: transparent;
    padding-inline: 0;
    padding-bottom: 0;
  }

  .no-js .tvx-header__nav-list {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .no-js .tvx-header__toggle {
    display: none;
  }
}
