/* Header styles for NorthSeaClubBar */

.nscb-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: radial-gradient(circle at top left, #ff4136 0, #111217 55%);
  color: #ffffff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
}

.nscb-header__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

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

.nscb-header__logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: #ffffff;
}

.nscb-header__logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: conic-gradient(from 200deg, #ff4136, #ffd166, #21ba45, #ff4136);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.15), 0 10px 20px rgba(0, 0, 0, 0.45);
  position: relative;
}

.nscb-header__logo-mark::before {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: inherit;
  background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.7), transparent 55%),
    radial-gradient(circle at 70% 80%, rgba(0, 0, 0, 0.7), transparent 60%);
}

.nscb-header__site-name {
  font-family: "Rajdhani", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.98rem;
  white-space: nowrap;
}

/* Navigation */

.nscb-header__nav {
  display: flex;
}

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

.nscb-header__nav-item {
  position: relative;
}

.nscb-header__nav-link {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  font-family: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: background-color 0.18s ease-out, color 0.18s ease-out, box-shadow 0.18s ease-out, transform 0.12s ease-out;
}

.nscb-header__nav-link:focus-visible {
  outline: 2px solid #ffd166;
  outline-offset: 2px;
}

.nscb-header__nav-link:hover {
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
  transform: translateY(-1px);
}

.nscb-header__nav-item--cta .nscb-header__nav-link--cta {
  background: linear-gradient(135deg, #ff4136, #ffd166);
  color: #111217;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.55);
}

.nscb-header__nav-item--cta .nscb-header__nav-link--cta:hover {
  background: linear-gradient(135deg, #ffd166, #ff4136);
}

/* Mobile toggle */

.nscb-header__toggle {
  display: none;
  border: none;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 999px;
  padding: 0.5rem;
  cursor: pointer;
  line-height: 0;
  color: #ffffff;
}

.nscb-header__toggle:focus-visible {
  outline: 2px solid #ffd166;
  outline-offset: 3px;
}

.nscb-header__toggle-bar {
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background-color: #ffffff;
  display: block;
  transition: transform 0.2s ease-out, opacity 0.2s ease-out;
}

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

/* Toggle animation when open */

.nscb-header--nav-open .nscb-header__toggle-bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

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

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

/* Mobile layout */

@media (max-width: 768px) {
  .nscb-header__inner {
    padding-inline: 1rem;
   
  }

  .nscb-header__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
     flex-direction: column;
  }

  .nscb-header__nav {
    position: absolute;
    inset-inline: 0;
    top: 100%;
    background: linear-gradient(to bottom, #111217, #111217f0, #111217e0);
    transform-origin: top;
    transform: scaleY(0.95);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.18s ease-out, transform 0.18s ease-out, visibility 0.18s ease-out;
  }

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

  .nscb-header__nav-list {
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem 1.25rem 1.1rem;
  }

  .nscb-header__nav-link {
    width: 100%;
    justify-content: space-between;
    padding: 0.7rem 0.9rem;
  }

  .nscb-header__nav-item--cta .nscb-header__nav-link--cta {
    justify-content: center;
    margin-top: 0.25rem;
  }
}

/* Medium+ layout */

@media (min-width: 769px) {
  .nscb-header__nav-list {
    gap: 0.25rem;
  }
}

/* High contrast focus for keyboard users */

@media (prefers-reduced-motion: reduce) {
  .nscb-header__nav-link,
  .nscb-header__toggle,
  .nscb-header__nav {
    transition: none !important;
  }
}
