/* Header styles for PolishSignage */

.ps-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(3, 15, 40, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: #ffffff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.ps-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;
}

/* Brand / logo */
.ps-header__brand {
  display: flex;
  align-items: center;
}

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

.ps-header__logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 0.6rem;
  background: radial-gradient(circle at 20% 20%, #4fd3ff, #0b66ff 40%, #071733 75%);
  box-shadow: 0 0 0 2px rgba(79, 211, 255, 0.4), 0 10px 20px rgba(0, 0, 0, 0.45);
}

.ps-header__logo-text {
  font-family: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ps-header__logo-text span {
  color: #4fd3ff;
}

/* Navigation */
.ps-header__nav {
  display: flex;
  background: rgba(3, 15, 40, 0.7);
  padding: 0.5rem;
  border-radius: 0.5rem;
}

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

.ps-header__nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.82);
  padding: 0.25rem 0;
  transition: color 0.18s ease-out;
}

.ps-header__nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #4fd3ff, #0bffb4);
  transition: width 0.18s ease-out;
}

.ps-header__nav-link:hover,
.ps-header__nav-link:focus-visible {
  color: #ffffff;
}

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

.ps-header__nav-link:focus-visible {
  outline: 2px solid #4fd3ff;
  outline-offset: 3px;
}

/* CTA item */
.ps-header__nav-item--cta {
  margin-left: 0.5rem;
}

.ps-header__nav-link--cta {
  padding: 0.45rem 1.05rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #4fd3ff, #0b66ff);
  color: #02101f;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

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

.ps-header__nav-link--cta:hover,
.ps-header__nav-link--cta:focus-visible {
  color: #02101f;
  background: linear-gradient(135deg, #6ae4ff, #2f7fff);
  box-shadow: 0 10px 25px rgba(11, 102, 255, 0.35);
}

/* Mobile toggle */
.ps-header__toggle {
  display: none;
  position: relative;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: radial-gradient(circle at 0 0, rgba(79, 211, 255, 0.3), rgba(7, 23, 51, 0.98));
  cursor: pointer;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.ps-header__toggle:focus-visible {
  outline: 2px solid #4fd3ff;
  outline-offset: 3px;
}

.ps-header__toggle-bar {
  position: absolute;
  width: 1.3rem;
  height: 2px;
  border-radius: 999px;
  background-color: #ffffff;
  transition: transform 0.18s ease-out, opacity 0.18s ease-out, top 0.18s ease-out, bottom 0.18s ease-out;
}

.ps-header__toggle-bar:nth-child(1) {
  top: 0.85rem;
}

.ps-header__toggle-bar:nth-child(2) {
  top: 1.1rem;
}

.ps-header__toggle-bar:nth-child(3) {
  bottom: 0.85rem;
}

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

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

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

/* Mobile layout */
@media (max-width: 768px) {
  .ps-header__inner {
    padding: 0.5rem 1rem;
  }

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

  .ps-header__nav {
    position: fixed;
    inset: 0 0 auto 0;
    top: 3.75rem;
    max-height: 0;
    overflow: hidden;
    background: radial-gradient(circle at top, rgba(79, 211, 255, 0.12), rgba(3, 11, 30, 0.99));
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: max-height 0.2s ease-out;
    padding: 0;
    border-radius: 0;
  }

  .ps-header__nav-list {
    flex-direction: column;
    align-items: flex-start;
    padding: 0.75rem 1.25rem 1.25rem;
    gap: 0.5rem;
  }

  .ps-header__nav-link {
    width: 100%;
    padding: 0.6rem 0;
    font-size: 0.95rem;
  }

  .ps-header__nav-item--cta {
    width: 100%;
    margin-left: 0;
    margin-top: 0.25rem;
  }

  .ps-header__nav-link--cta {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .ps-header__nav--open {
    max-height: 18rem;
  }
}

/* Medium screens adjustments */
@media (min-width: 769px) and (max-width: 1024px) {
  .ps-header__inner {
    padding-inline: 1.5rem;
  }

  .ps-header__nav-list {
    gap: 1.25rem;
  }
}
