/* Header styles for PlayTimeHubPL */

.pth-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #ffffffcc;
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(252, 197, 101, 0.5);
}

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

.pth-skip-link {
  position: absolute;
  left: -999px;
  top: 0.25rem;
  padding: 0.5rem 0.75rem;
  background: #ffcc4d;
  color: #1b264f;
  border-radius: 999px;
  font-size: 0.9rem;
  z-index: 1100;
}

.pth-skip-link:focus {
  left: 1rem;
  outline: 2px solid #1b264f;
}

.pth-logo-area {
  display: flex;
  align-items: center;
}

.pth-logo-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
}

.pth-logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 20%, #ffe08a, #ff9f68);
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.pth-logo-text {
  font-family: "Baloo 2", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: 0.01em;
  color: #1b264f;
}

/* Navigation */

.pth-primary-nav {
  flex: 1 1 auto;
}

.pth-primary-nav-list {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.pth-primary-nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0;
  font-family: "Nunito", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 600;
  font-size: 0.96rem;
  color: #294b8a;
  text-decoration: none;
}

.pth-primary-nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0.1rem;
  width: 0;
  height: 0.16rem;
  border-radius: 999px;
  background: linear-gradient(90deg, #ffcc4d, #ff9f68, #ff7eb3);
  transition: width 0.22s ease;
}

.pth-primary-nav-link:hover::after,
.pth-primary-nav-link:focus-visible::after {
  width: 100%;
}

.pth-primary-nav-link:focus-visible {
  outline: 2px solid #ff7eb3;
  outline-offset: 2px;
  border-radius: 999px;
}

/* Header CTAs */

.pth-header-cta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pth-header-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  font-family: "Nunito", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background-color 0.18s ease, color 0.18s ease, transform 0.12s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.pth-header-btn-primary {
  background: linear-gradient(135deg, #ffcc4d, #ff9f68);
  color: #1b264f!important;
  box-shadow: 0 4px 12px rgba(255, 173, 69, 0.4);
}

.pth-header-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(255, 173, 69, 0.55);
}

.pth-header-btn-primary:focus-visible {
  outline: 2px solid #1b264f;
  outline-offset: 2px;
}

.pth-header-btn-outline {
  background: #ffffff;
  color: #294b8a;
  border-color: rgba(41, 75, 138, 0.28);
}

.pth-header-btn-outline:hover {
  background: #e5f4ff;
}

.pth-header-btn-outline:focus-visible {
  outline: 2px solid #ff7eb3;
  outline-offset: 2px;
}

/* Mobile navigation toggle */

.pth-nav-toggle {
  display: none;
  position: relative;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  border: none;
  background: #fff4db;
  cursor: pointer;
  padding: 0.4rem;
  align-items: center;
  justify-content: center;
}

.pth-nav-toggle:focus-visible {
  outline: 2px solid #ff7eb3;
  outline-offset: 2px;
}

.pth-nav-toggle-bar {
  display: block;
  width: 1.3rem;
  height: 0.16rem;
  border-radius: 999px;
  background: #294b8a;
  transition: transform 0.2s ease, opacity 0.2s ease, translate 0.2s ease;
}

.pth-nav-toggle-bar + .pth-nav-toggle-bar {
  margin-top: 0.2rem;
}

.pth-nav-toggle.is-active .pth-nav-toggle-bar:nth-child(1) {
  transform: rotate(45deg);
  translate: 0 0.3rem;
}

.pth-nav-toggle.is-active .pth-nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.pth-nav-toggle.is-active .pth-nav-toggle-bar:nth-child(3) {
  transform: rotate(-45deg);
  translate: 0 -0.3rem;
}

/* Responsive behaviors */

@media (max-width: 799px) {
  .pth-header-inner {
    padding-inline: 1rem;
  }

  .pth-primary-nav {
    position: absolute;
    inset-inline: 0;
    top: 100%;
    background: #ffffff;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    border-bottom-left-radius: 1.25rem;
    border-bottom-right-radius: 1.25rem;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-4px);
    transition: max-height 0.25s ease, opacity 0.18s ease, transform 0.18s ease;
  }

  .pth-primary-nav-list {
    flex-direction: column;
    align-items: flex-start;
    padding: 0.75rem 1.25rem 1rem;
    gap: 0.45rem;
  }

  .pth-primary-nav-link {
    padding-block: 0.35rem;
  }

  .pth-nav-toggle {
    display: inline-flex;
    flex-direction: column;
  }

  .pth-header-cta {
    display: none;
  }

  .pth-header-inner {
    justify-content: space-between;
  }

  .pth-primary-nav.is-open {
    max-height: 14rem;
    opacity: 1;
    transform: translateY(0);
  }
}

@media (min-width: 800px) {
  .pth-primary-nav {
    position: static;
    max-height: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

@media (max-width: 480px) {
  .pth-logo-text {
    font-size: 1.15rem;
  }
}
