/* Villám Start - Header styles */

.vs-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(18px);
  background: linear-gradient(to bottom, rgba(5, 6, 10, 0.96), rgba(5, 6, 10, 0.88));
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.vs-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: var(--space-12);
  gap: var(--space-16);
}

/* Branding */
.vs-header__branding {
  display: flex;
  align-items: center;
  gap: var(--space-12);
}

.vs-header__logo-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-12);
}

.vs-header__logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: radial-gradient(circle at 30% 0, rgba(242, 201, 76, 0.45), transparent 55%),
    radial-gradient(circle at 80% 120%, rgba(193, 39, 45, 0.6), transparent 55%),
    #05060a;
  border: 1px solid rgba(212, 175, 55, 0.75);
  box-shadow: var(--shadow-gold-glow);
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.18em;
}

.vs-header__logo-text {
  display: flex;
  flex-direction: column;
}

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

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

/* Navigation */
.vs-header__nav {
  display: flex;
}

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

.vs-header__nav-link {
  position: relative;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  padding-block: var(--space-4);
}

.vs-header__nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #e1c56a, #c1272d);
  transition: width var(--transition-base);
}

.vs-header__nav-link:hover,
.vs-header__nav-link:focus-visible {
  color: #ffffff;
}

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

.vs-header__nav-item--cta .vs-header__nav-link--cta {
  padding-inline: 1.2rem;
}

/* Mobile toggle */
.vs-header__toggle {
  display: none;
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: radial-gradient(circle at 30% 0, rgba(212, 175, 55, 0.2), transparent 55%),
    rgba(10, 12, 22, 0.96);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
}

.vs-header__toggle-bar {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background-color: var(--color-text);
  transition: transform var(--transition-base), opacity var(--transition-base), width var(--transition-base);
}

.vs-header--menu-open .vs-header__toggle-bar:nth-child(1) {
  transform: translateY(4px) rotate(45deg);
}

.vs-header--menu-open .vs-header__toggle-bar:nth-child(2) {
  opacity: 0;
  width: 0;
}

.vs-header--menu-open .vs-header__toggle-bar:nth-child(3) {
  transform: translateY(-4px) rotate(-45deg);
}

/* Mobile nav state */
@media (max-width: 768px) {
  .vs-header__inner {
    padding-block: var(--space-8);
  }

  .vs-header__toggle {
    display: inline-flex;
  }

  .vs-header__nav {
    position: fixed;
    inset-inline: 0;
    top: 56px;
    max-height: 0;
    overflow: hidden;
    background: radial-gradient(circle at top, rgba(212, 175, 55, 0.07), transparent 55%),
      rgba(5, 6, 10, 0.98);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: max-height var(--transition-slow);
  }

  .vs-header__nav-list {
    flex-direction: column;
    align-items: flex-start;
    padding: var(--space-16);
    gap: var(--space-12);
  }

  .vs-header__nav-item--cta {
    width: 100%;
  }

  .vs-header__nav-item--cta .vs-header__nav-link--cta {
    width: 100%;
    justify-content: center;
  }

  .vs-header--menu-open .vs-header__nav {
    max-height: 320px;
  }
}

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

/* Desktop specific */
@media (min-width: 769px) {
  .vs-header__nav {
    align-items: center;
  }
}
