/* Header styles for PlayWorldPL - builds on base.css */

/* Accessible skip link */
.skip-link {
  position: absolute;
  left: 0.5rem;
  top: -100vh;
  background: #00e5ff;
  color: #0a0d12;
  padding: 0.5rem 0.75rem;
  border-radius: 0.25rem;
  z-index: 10000;
  box-shadow: 0 0 0 3px #0a0d12, 0 0 12px rgba(0,229,255,.7);
  transition: top .2s ease;
}
.skip-link:focus { top: 0.5rem; outline: none; }

.site-header {
  background: linear-gradient(180deg, #12151b 0%, #0c0f14 100%);
  border-bottom: 1px solid rgba(0, 229, 255, 0.25);
  position: sticky;
  top: 0;
  z-index: 9999;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand { display: flex; align-items: baseline; gap: 0.75rem; min-width: 0; }
.site-name {
  color: #e6faff;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  text-shadow: 0 0 10px rgba(0,229,255,.35);
}
.tagline { color: #8ba3ad; font-size: 0.875rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Nav */
.primary-nav { display: block; }
.nav-list { display: flex; align-items: center; gap: 0.25rem; list-style: none; margin: 0; padding: 0; }
.nav-list a {
  display: inline-block;
  padding: 0.6rem 0.8rem;
  color: #cfefff;
  text-decoration: none;
  border-radius: 0.375rem;
  position: relative;
}
.nav-list a:hover,
.nav-list a:focus {
  color: #0a0d12;
  background: #00e5ff;
  outline: none;
  box-shadow: 0 0 0 2px #00e5ff, 0 0 14px rgba(0,229,255,.55);
}
.nav-list a:active { transform: translateY(1px); }

/* Hamburger */
.nav-toggle {
  background: transparent;
  border: 1px solid rgba(0,229,255,.4);
  color: #e6faff;
  padding: 0.55rem;
  border-radius: 0.5rem;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.nav-toggle:focus { outline: none; box-shadow: 0 0 0 2px #ffcc00; }
.nav-toggle .bar {
  width: 22px; height: 2px; background: #e6faff; display: block;
  box-shadow: 0 0 8px rgba(0,229,255,.6);
}
.nav-toggle .bar + .bar { margin-top: 1px; }

/* Responsive behavior: Mobile first visible nav for no-JS, then JS collapses */
@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; flex-direction: column; }
  /* When JS is active, collapse menu by default on small screens */
  body.js.menu-collapsed .primary-nav { display: none; }
  body.js.menu-collapsed.menu-open .primary-nav { display: block; }

  .primary-nav { position: absolute; left: 0; right: 0; top: 100%; }
  .primary-nav .nav-list {
    flex-direction: column; align-items: stretch; gap: 0.25rem;
    background: #0b0f15; border-bottom: 1px solid rgba(0,229,255,.25);
    padding: 0.5rem; box-shadow: 0 8px 18px rgba(0,0,0,.45);
  }
  .nav-list a { border-radius: 0.35rem; }
}

/* Larger screens */
@media (min-width: 961px) {
  .tagline { font-size: 0.9rem; opacity: .9; }
  .nav-list a { padding: 0.6rem 0.9rem; }
}
