﻿/* =========================
   HEADER
========================= */

.ps-header {
  position: relative;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--ps-text-soft);
  font-size: 15px;
  line-height: 1;
  padding-top: 2px;
}

.ps-header-left,
.ps-header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ps-header-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 15px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02)),
    rgba(5, 8, 16, 0.72);
  color: inherit;
  cursor: pointer;
  opacity: 0.96;
  overflow: hidden;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 12px 30px rgba(0, 0, 0, 0.18);
  transition:
    color 0.22s ease,
    transform 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease,
    background 0.22s ease;
}

.ps-header-link::before {
  content: '';
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.2), rgba(255, 255, 255, 0));
  opacity: 0;
  transition: opacity 0.22s ease;
  pointer-events: none;
}

.ps-header-link > * {
  position: relative;
  z-index: 1;
}

.ps-header-link:hover {
  color: var(--ps-text);
  transform: translateY(-1px);
  border-color: rgba(159, 196, 255, 0.28);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 18px 36px rgba(0, 0, 0, 0.22),
    0 0 0 1px rgba(159, 196, 255, 0.08),
    0 0 18px rgba(76, 168, 236, 0.08);
}

.ps-header-link:hover::before,
.ps-header-link.is-current::before,
.ps-header-link[aria-expanded='true']::before {
  opacity: 1;
}

.ps-header-link.is-current,
.ps-header-link[aria-expanded='true'] {
  color: var(--ps-text);
  border-color: rgba(159, 196, 255, 0.34);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 18px 38px rgba(0, 0, 0, 0.24),
    0 0 28px rgba(76, 168, 236, 0.12);
}

.ps-header-divider {
  opacity: 0.28;
}

.ps-cart-link {
  position: relative;
  gap: 10px;
}

.ps-cart-link.has-items {
  color: var(--ps-text);
}

.ps-cart-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  border: 1px solid rgba(166, 201, 255, 0.28);
  background:
    radial-gradient(circle at 30% 28%, rgba(56, 189, 248, 0.34), transparent 58%),
    linear-gradient(180deg, rgba(35, 53, 86, 0.98), rgba(17, 26, 46, 0.98));
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  box-shadow:
    0 0 0 1px rgba(159, 196, 255, 0.12),
    0 8px 18px rgba(8, 14, 28, 0.22),
    0 0 16px rgba(76, 168, 236, 0.1);
}

.ps-cart-link.is-updating .ps-cart-badge {
  animation: ps-cart-pulse 0.7s ease;
}

@keyframes ps-cart-pulse {
  0% {
    transform: scale(1);
  }

  35% {
    transform: scale(1.18);
  }

  100% {
    transform: scale(1);
  }
}

/* =========================
   HERO
========================= */

.ps-hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  margin-top: -44px;
  padding: 0 0 34px;
  text-align: center;
}

@keyframes ps-float {
  0% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }

  100% {
    transform: translateY(0);
  }
}

.ps-logo {
  display: block;
  position: relative;
  left: 10px;
  z-index: 2;
  width: min(100%, 668px);
  height: auto;
  margin: 0 auto -44px;
  filter:
    brightness(1.07)
    contrast(1.09)
    saturate(1.03)
    drop-shadow(0 18px 34px rgba(0, 0, 0, 0.32))
    drop-shadow(0 0 28px rgba(162, 178, 255, 0.07));
  transition:
    width 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.35s ease,
    margin 0.35s ease,
    filter 0.35s ease;
  animation: none;
  user-select: none;
  pointer-events: none;
}

.ps-app.ps-active .ps-logo {
  width: min(100%, 322px);
  margin-bottom: -16px;
  opacity: 0.97;
  filter:
    brightness(1.05)
    contrast(1.07)
    saturate(1.02)
    drop-shadow(0 14px 26px rgba(0, 0, 0, 0.28));
  animation: none;
}

.ps-title {
  position: relative;
  z-index: 2;
  max-width: none;
  margin: 0 auto 14px;
  color: #edf2ff;
  font-size: clamp(18px, 1.7vw, 22px);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.026em;
  white-space: nowrap;
  text-wrap: nowrap;
  transition:
    opacity 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.ps-app.ps-active .ps-title {
  opacity: 0;
  transform: translateY(-8px);
}
