/* Header specific styling for Widownia Spot */

.ws-header {
  position: sticky;
  top: 0;
  z-index: 40;
}

.ws-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

/* Brand / logo */

.ws-header__brand {
  display: flex;
  align-items: center;
}

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

.ws-header__logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: radial-gradient(circle at 30% 20%, var(--color-primary-strong) 0, #111827 45%, #020309 100%);
  box-shadow: 0 0 18px rgba(64, 145, 255, 0.6);
  position: relative;
  overflow: hidden;
}

.ws-header__logo-mark::before,
.ws-header__logo-mark::after {
  content: "";
  position: absolute;
  inset: 16%;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.ws-header__logo-mark::after {
  inset: 34%;
  border-color: rgba(255, 38, 89, 0.8);
}

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

.ws-header__logo-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ws-header__logo-subtitle {
  font-size: var(--font-size-xs);
  color: var(--color-text-subtle);
}

/* Navigation */

.ws-header__nav {
  display: flex;
}

.ws-header__nav-list {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.ws-header__nav-link {
  position: relative;
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  text-decoration: none;
  padding: 0.25rem 0;
}

.ws-header__nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.25rem;
  width: 0;
  height: 2px;
  border-radius: var(--border-radius-pill);
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent-pink));
  transition: width var(--transition-normal);
}

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

.ws-header__nav-link:hover,
.ws-header__nav-link[aria-current="page"] {
  color: var(--color-text);
}

.ws-header__nav-item--cta .ws-header__nav-link--cta {
  padding: 0.45rem 1.1rem;
  border-radius: var(--border-radius-pill);
  border: 1px solid rgba(64, 145, 255, 0.7);
  background: radial-gradient(circle at top left, rgba(64, 145, 255, 0.3) 0, rgba(15, 23, 42, 1) 45%);
  box-shadow: var(--shadow-soft);
}

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

.ws-header__nav-item--cta .ws-header__nav-link--cta:hover {
  box-shadow: 0 0 26px rgba(64, 145, 255, 0.7);
  color: var(--color-text);
}

/* Mobile toggle */

.ws-header__menu-toggle {
  display: none;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.75rem;
  border-radius: var(--border-radius-pill);
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: rgba(15, 23, 42, 0.9);
  color: var(--color-text-muted);
  cursor: pointer;
}

.ws-header__menu-toggle:focus-visible {
  outline: 2px solid var(--color-primary-strong);
  outline-offset: 3px;
}

.ws-header__menu-toggle-box {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
}

.ws-header__menu-toggle-bar {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: var(--color-text);
  transition: transform var(--transition-normal), opacity var(--transition-normal);
}

.ws-header__menu-toggle-text {
  font-size: var(--font-size-xs);
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

/* Mobile / tablet layout */

@media (max-width: 900px) {
  .ws-header__inner {
    gap: var(--space-2);
  }

  .ws-header__logo-subtitle {
    display: none;
  }

  .ws-header__menu-toggle {
    display: inline-flex;
  }

  .ws-header__nav {
    position: absolute;
    inset-inline: 0;
    top: 100%;
    background: linear-gradient(to bottom, rgba(5, 6, 10, 0.98), rgba(5, 6, 10, 0.96));
    border-bottom: 1px solid rgba(148, 163, 184, 0.35);
    transform-origin: top;
    transform: scaleY(0.9);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity var(--transition-normal), transform var(--transition-normal), visibility var(--transition-normal);
  }

  .ws-header__nav-list {
    flex-direction: column;
    align-items: flex-start;
    padding: var(--space-3) var(--space-4) var(--space-4);
    gap: 0.75rem;
  }

  .ws-header__nav-link {
    width: 100%;
  }

  .ws-header__nav-item--cta .ws-header__nav-link--cta {
    width: 100%;
    text-align: center;
    justify-content: center;
    display: inline-flex;
  }

  .ws-header__nav--open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: scaleY(1);
  }

  .ws-header__menu-toggle--open .ws-header__menu-toggle-bar:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .ws-header__menu-toggle--open .ws-header__menu-toggle-bar:nth-child(2) {
    opacity: 0;
  }

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

@media (max-width: 520px) {
  .ws-header__logo-title {
    font-size: 0.95rem;
  }
}
