/* Header styles for DigitronixShopPL */

.dt-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(18px);
  background: linear-gradient(90deg, rgba(4, 8, 22, 0.96), rgba(8, 18, 40, 0.96));
  border-bottom: 1px solid rgba(120, 180, 255, 0.18);
}

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

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

.dt-header__logo-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
}

.dt-header__logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 0.9rem;
  background: radial-gradient(circle at 10% 0, #00e0ff 0%, #00a5ff 40%, #0040ff 100%);
  color: #040816;
  font-family: "Orbitron", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.08em;
  box-shadow: 0 0 0 1px rgba(0, 229, 255, 0.55), 0 0 18px rgba(0, 185, 255, 0.7);
}

.dt-header__logo-text {
  font-family: "Orbitron", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #f5f7ff;
  white-space: nowrap;
}

.dt-header__logo-accent {
  color: #41e1ff;
}

.dt-header__nav {
  flex: 1;
}

.dt-header__nav-list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.4rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.dt-header__nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-decoration: none;
  color: #e5ecff;
  opacity: 0.82;
  transition: color 160ms ease, opacity 160ms ease;
}

.dt-header__nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0.15rem;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #00f5ff, #4ad1ff);
  box-shadow: 0 0 8px rgba(0, 214, 255, 0.6);
  transition: width 160ms ease-out;
}

.dt-header__nav-link:hover,
.dt-header__nav-link:focus-visible {
  color: #ffffff;
  opacity: 1;
}

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

.dt-header__nav-link:focus-visible {
  outline: 2px solid #41e1ff;
  outline-offset: 4px;
}

.dt-header__actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.dt-header__action-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 999px;
  border: 1px solid rgba(151, 200, 255, 0.45);
  color: #f5f7ff;
  text-decoration: none;
  background: radial-gradient(circle at 30% 0, rgba(0, 255, 255, 0.22), rgba(0, 0, 0, 0.1));
  box-shadow: 0 0 0 1px rgba(0, 122, 255, 0.18);
  transition: border-color 150ms ease, box-shadow 150ms ease, background-color 150ms ease, transform 120ms ease;
}

.dt-header__action-link--search {
  border-style: dashed;
}

.dt-header__action-link:hover,
.dt-header__action-link:focus-visible {
  border-color: rgba(0, 233, 255, 0.9);
  box-shadow: 0 0 0 1px rgba(0, 233, 255, 0.85), 0 0 14px rgba(0, 214, 255, 0.7);
  transform: translateY(-1px);
}

.dt-header__action-link:focus-visible {
  outline: 2px solid #41e1ff;
  outline-offset: 3px;
}

.dt-header__toggle {
  display: none;
  position: relative;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 999px;
  border: 1px solid rgba(151, 200, 255, 0.5);
  background: radial-gradient(circle at 30% 0, rgba(0, 255, 255, 0.16), rgba(0, 0, 0, 0.1));
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
}

.dt-header__toggle-bar {
  position: absolute;
  width: 1.1rem;
  height: 2px;
  border-radius: 999px;
  background: #f5f7ff;
  transition: transform 160ms ease, opacity 160ms ease, top 160ms ease, bottom 160ms ease;
}

.dt-header__toggle-bar:nth-child(1) {
  top: 0.9rem;
}

.dt-header__toggle-bar:nth-child(2) {
  top: 1.15rem;
}

.dt-header__toggle-bar:nth-child(3) {
  bottom: 0.9rem;
}

.dt-header__toggle:focus-visible {
  outline: 2px solid #41e1ff;
  outline-offset: 3px;
}

.dt-header__toggle.is-active .dt-header__toggle-bar:nth-child(1) {
  top: 1.15rem;
  transform: rotate(45deg);
}

.dt-header__toggle.is-active .dt-header__toggle-bar:nth-child(2) {
  opacity: 0;
}

.dt-header__toggle.is-active .dt-header__toggle-bar:nth-child(3) {
  bottom: auto;
  top: 1.15rem;
  transform: rotate(-45deg);
}

/* Mobile layout */

@media (max-width: 768px) {
  .dt-header__inner {
    padding-inline: 1rem;
  }

  .dt-header__nav {
    position: absolute;
    inset-inline: 0;
    top: 100%;
    background: radial-gradient(circle at 0 0, rgba(0, 229, 255, 0.14), transparent 60%), #050818;
    border-bottom: 1px solid rgba(120, 180, 255, 0.32);
    transform-origin: top;
    transform: scaleY(0.96);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 140ms ease, transform 140ms ease, visibility 140ms ease;
  }

  .dt-header__nav-list {
    flex-direction: column;
    align-items: flex-start;
    padding: 0.6rem 1.25rem 1rem;
    gap: 0.2rem;
  }

  .dt-header__nav-link {
    width: 100%;
    padding-block: 0.55rem;
    font-size: 0.9rem;
  }

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

  .dt-header__nav.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: scaleY(1);
  }

  .dt-header__actions {
    gap: 0.25rem;
  }
}

/* Medium screens */

@media (min-width: 769px) and (max-width: 1024px) {
  .dt-header__inner {
    padding-inline: 1.25rem;
  }

  .dt-header__nav-list {
    gap: 1.1rem;
  }

  .dt-header__nav-link {
    font-size: 0.9rem;
  }
}

@supports not (backdrop-filter: blur(10px)) {
  .dt-header {
    background: linear-gradient(90deg, #050918, #050b1e);
  }
}
