/* Header styles for Paris Arena Online */

.pa-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #020817;
  color: #f9fafb;
  border-bottom: 1px solid rgba(148, 163, 184, 0.3);
  backdrop-filter: blur(16px);
}

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

.pa-header__brand {
  display: flex;
  align-items: center;
  min-width: 0;
}

.pa-header__logo-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}

.pa-header__logo-mark {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.9rem;
  background: radial-gradient(circle at 20% 0%, #22c1c3, #1e293b 55%, #0f172a 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  color: #e5e7eb;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.6);
}

.pa-header__site-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.pa-header__site-name {
  font-family: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #e5e7eb;
}

.pa-header__site-tagline {
  font-family: "Nunito Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.78rem;
  line-height: 1.2;
  color: #9ca3af;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

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

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

.pa-header__nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  font-family: "Nunito Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  color: #e5e7eb;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: background-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, transform 0.12s ease;
}

.pa-header__nav-link::after {
  content: "";
  position: absolute;
  left: 1.1rem;
  right: 1.1rem;
  bottom: 0.25rem;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #22c1c3, #0ea5e9);
  opacity: 0;
  transform: scaleX(0.6) translateY(3px);
  transform-origin: center;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.pa-header__nav-link:hover,
.pa-header__nav-link:focus-visible {
  background-color: rgba(15, 23, 42, 0.9);
  color: #f9fafb;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.7);
  outline: none;
}

.pa-header__nav-link:hover::after,
.pa-header__nav-link:focus-visible::after {
  opacity: 1;
  transform: scaleX(1) translateY(3px);
}

.pa-header__nav-item--cta .pa-header__nav-link--cta {
  padding-inline: 1rem;
  background: linear-gradient(135deg, #22c1c3, #0ea5e9);
  color: #020617;
  font-weight: 600;
  box-shadow: 0 14px 30px rgba(56, 189, 248, 0.45);
}

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

.pa-header__nav-item--cta .pa-header__nav-link--cta:hover,
.pa-header__nav-item--cta .pa-header__nav-link--cta:focus-visible {
  background: linear-gradient(135deg, #0891b2, #22c1c3);
  transform: translateY(-1px);
}

/* Mobile menu toggle */
.pa-header__toggle {
  display: none;
  position: relative;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: rgba(15, 23, 42, 0.9);
  padding: 0;
  cursor: pointer;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 0.25rem;
  transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
}

.pa-header__toggle:hover,
.pa-header__toggle:focus-visible {
  border-color: #22c1c3;
  background-color: rgba(15, 23, 42, 1);
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.7);
  outline: none;
}

.pa-header__toggle:active {
  transform: scale(0.96);
}

.pa-header__toggle-bar {
  width: 1.25rem;
  height: 2px;
  border-radius: 999px;
  background-color: #e5e7eb;
  transition: transform 0.18s ease, opacity 0.18s ease, background-color 0.18s ease;
}

.pa-header__toggle[aria-expanded="true"] .pa-header__toggle-bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

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

.pa-header__toggle[aria-expanded="true"] .pa-header__toggle-bar:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Responsive behavior */
@media (max-width: 768px) {
  .pa-header__inner {
    padding-inline: 1rem;
  }

  .pa-header__site-tagline {
    display: none;
  }

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

  .pa-header__nav {
    position: absolute;
    inset-inline: 0;
    top: 100%;
    background: rgba(2, 6, 23, 0.98);
    border-bottom: 1px solid rgba(15, 23, 42, 0.95);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.95);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: max-height 0.22s ease, opacity 0.18s ease, transform 0.18s ease;
  }

  .pa-header__nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    padding: 0.75rem 1rem 1rem;
  }

  .pa-header__nav-link {
    width: 100%;
    justify-content: space-between;
    padding: 0.6rem 0.85rem;
    border-radius: 0.75rem;
  }

  .pa-header__nav-link::after {
    display: none;
  }

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

  .pa-header__nav--open {
    max-height: 420px;
    opacity: 1;
    transform: translateY(0);
  }
}

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