/* Header styles for Rilvo Arena */

.ra-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: linear-gradient(to bottom, rgba(5, 8, 21, 0.94), rgba(5, 8, 21, 0.85));
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.ra-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4.25rem;
  padding-top: var(--space-3);
  padding-bottom: var(--space-3);
}

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

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

.ra-header__logo-mark {
  position: relative;
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 0.9rem;
  background: radial-gradient(circle at 10% 0, rgba(60, 255, 123, 0.35), transparent 55%),
              radial-gradient(circle at 90% 100%, rgba(59, 130, 246, 0.35), transparent 55%),
              #050815;
  box-shadow: var(--shadow-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ra-header__logo-chip {
  position: absolute;
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.65);
}

.ra-header__logo-chip--poker {
  top: 0.35rem;
  left: 0.3rem;
  background: radial-gradient(circle at 30% 30%, #ffffff, #3cff7b);
}

.ra-header__logo-chip--sport {
  bottom: 0.35rem;
  right: 0.3rem;
  background: radial-gradient(circle at 30% 30%, #ffffff, #38bdf8);
}

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

.ra-header__logo-title {
  font-family: var(--font-display);
  font-size: var(--font-size-xl);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

/* Nav layout */
.ra-header__nav {
  display: flex;
  align-items: center;
}

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

.ra-header__nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0;
  font-size: var(--font-size-sm);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

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

.ra-header__nav-link:hover,
.ra-header__nav-link:focus-visible {
  color: var(--color-text);
}

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

.ra-header__nav-item--cta .ra-header__nav-link--cta {
  padding: 0.55rem 1.25rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: radial-gradient(circle at top, rgba(60, 255, 123, 0.18), rgba(11, 16, 44, 0.95));
  box-shadow: var(--shadow-soft);
  color: #020309;
  background-image: linear-gradient(135deg, var(--color-primary) 0%, #8affc2 100%);
}

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

.ra-header__nav-item--cta .ra-header__nav-link--cta:hover,
.ra-header__nav-item--cta .ra-header__nav-link--cta:focus-visible {
  transform: translateY(-1px);
  box-shadow: var(--shadow-glow-primary);
  color: #020309;
}

/* Hamburger toggle */
.ra-header__toggle {
  display: none;
  position: relative;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: radial-gradient(circle at top, rgba(60, 255, 123, 0.15), rgba(11, 16, 44, 0.95));
  cursor: pointer;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.ra-header__toggle-bar {
  position: absolute;
  width: 1.2rem;
  height: 2px;
  border-radius: 999px;
  background: #ffffff;
  transition: transform var(--transition-base), opacity var(--transition-base), top var(--transition-base), bottom var(--transition-base);
}

.ra-header__toggle-bar:nth-child(1) {
  top: 0.65rem;
}

.ra-header__toggle-bar:nth-child(2) {
  top: 1.05rem;
}

.ra-header__toggle-bar:nth-child(3) {
  bottom: 0.65rem;
}

.ra-header__toggle[aria-expanded="true"] .ra-header__toggle-bar:nth-child(1) {
  top: 1.05rem;
  transform: rotate(45deg);
}

.ra-header__toggle[aria-expanded="true"] .ra-header__toggle-bar:nth-child(2) {
  opacity: 0;
}

.ra-header__toggle[aria-expanded="true"] .ra-header__toggle-bar:nth-child(3) {
  bottom: 1.05rem;
  transform: rotate(-45deg);
}

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

/* Mobile styles */
@media (max-width: 768px) {
  .ra-header__inner {
    min-height: 3.75rem;
  }

  .ra-header__logo-title {
    font-size: var(--font-size-lg);
  }

  .ra-header__logo-subtitle {
    letter-spacing: 0.12em;
  }

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

  .ra-header__nav {
    position: absolute;
    inset-inline: 0;
    top: 100%;
    transform-origin: top;
    background: rgba(5, 8, 21, 0.98);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  }

  .ra-header__nav-list {
    display: none;
    flex-direction: column;
    padding: var(--space-3) var(--space-4) var(--space-5);
    gap: var(--space-2);
  }

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

  .ra-header__nav-item--cta .ra-header__nav-link--cta {
    width: 100%;
    justify-content: center;
    text-align: center;
    margin-top: var(--space-2);
  }

  .ra-header--menu-open .ra-header__nav-list {
    display: flex;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ra-header__toggle-bar {
    transition: none;
  }
}
