/* Header styles for KOR.GY IRYNA RYBACHOK */

.evs-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: linear-gradient(to bottom, rgba(5, 6, 10, 0.96), rgba(5, 6, 10, 0.9));
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--color-border-subtle);
}

.evs-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-8);
  padding-top: var(--space-6);
  padding-bottom: var(--space-6);
}

/* Brand */
.evs-header__brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-4);
  text-decoration: none;
}

.evs-header__logo-mark {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid rgba(228, 182, 87, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.7), var(--shadow-soft);
  background: radial-gradient(circle at 30% 10%, rgba(255, 255, 255, 0.32), transparent 55%),
    radial-gradient(circle at 70% 90%, rgba(180, 44, 61, 0.6), transparent 55%),
    #05060a;
}

.evs-header__chip {
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(0, 0, 0, 0.8);
}

.evs-header__chip--gold {
  background: radial-gradient(circle at 30% 20%, #fff4c2, #e4b657);
  top: 9px;
  left: 7px;
}

.evs-header__chip--red {
  background: radial-gradient(circle at 30% 20%, #ffcfd7, #b42c3d);
  bottom: 6px;
  right: 6px;
}

.evs-header__brand-text {
  display: flex;
  flex-direction: column;
}

.evs-header__brand-name {
  font-family: var(--font-display);
  font-size: var(--font-size-lg);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.evs-header__brand-tagline {
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
}

/* Nav */
.evs-header__nav {
  display: flex;
}

.evs-header__nav-list {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  list-style: none;
}

.evs-header__nav-link {
  position: relative;
  font-size: var(--font-size-sm);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  padding: 0.35rem 0;
}

.evs-header__nav-link:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 4px;
}

.evs-header__nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  transition: width var(--transition-base);
}

.evs-header__nav-link:hover,
.evs-header__nav-link[aria-current="page"] {
  color: #ffffff;
}

.evs-header__nav-link:hover::after,
.evs-header__nav-link[aria-current="page"]::after {
  width: 100%;
}

.evs-header__nav-item--cta .evs-header__nav-link--cta {
  padding: 0.45rem 1.1rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(228, 182, 87, 0.9);
  background: radial-gradient(circle at 0 0, rgba(228, 182, 87, 0.25), transparent 55%),
    rgba(255, 255, 255, 0.02);
  color: var(--color-primary);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.85);
}

.evs-header__nav-item--cta .evs-header__nav-link--cta::after {
  display: none;
}

.evs-header__nav-item--cta .evs-header__nav-link--cta:hover {
  background: linear-gradient(135deg, #f1d188, var(--color-primary));
  color: #130f02;
  box-shadow: var(--shadow-soft);
}

/* Mobile toggle */
.evs-header__toggle {
  display: none;
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--color-border-subtle);
  background-color: rgba(10, 10, 18, 0.9);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.evs-header__toggle-bar {
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background-color: #ffffff;
  transition: transform var(--transition-base), opacity var(--transition-base), top var(--transition-base), bottom var(--transition-base);
}

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

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

/* Open state animations */
.evs-header--menu-open .evs-header__toggle-bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

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

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

/* Mobile layout */
@media (max-width: 960px) {
  .evs-header__inner {
    padding-top: var(--space-4);
    padding-bottom: var(--space-4);
  }

  .evs-header__toggle {
    display: inline-flex;
    flex-direction: column;
  }

  .evs-header__nav {
    position: fixed;
    inset: 64px 0 auto 0;
    max-height: calc(100vh - 64px);
    background: radial-gradient(circle at top left, rgba(228, 182, 87, 0.12), transparent 55%),
      radial-gradient(circle at bottom right, rgba(180, 44, 61, 0.18), transparent 60%),
      rgba(5, 6, 10, 0.98);
    border-bottom: 1px solid var(--color-border-subtle);
    transform: translateY(-110%);
    opacity: 0;
    pointer-events: none;
    transition: transform var(--transition-base), opacity var(--transition-base);
  }

  .evs-header__nav-list {
    flex-direction: column;
    align-items: flex-start;
    padding: var(--space-8) var(--container-padding-x) var(--space-8);
  }

  .evs-header__nav-item {
    width: 100%;
  }

  .evs-header__nav-link,
  .evs-header__nav-item--cta .evs-header__nav-link--cta {
    display: inline-flex;
    width: 100%;
  }

  .evs-header--menu-open .evs-header__nav {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
}

@media (max-width: 600px) {
  .evs-header__brand-tagline {
    display: none;
  }
}
