/* /portal/_core/ui/wst-header.css
   CANONICAL — WST Unified Header (v1)
*/

:root{
  --wst-h-bg: rgba(8, 12, 28, .78);
  --wst-h-line: rgba(255,255,255,.12);
  --wst-h-line2: rgba(255,255,255,.08);
  --wst-h-shadow: 0 18px 60px rgba(0,0,0,.40);
  --wst-h-radius: 18px;

  --wst-text: #f7f9ff;
  --wst-muted: rgba(255,255,255,.72);
  --wst-accent: #f6c45c;
  --wst-accent2: #ffd98a;
}

/* ─────────────────────────────────────────
   Header Shell
───────────────────────────────────────── */

.wst-header{
  position: sticky;
  top: 0;
  z-index: 60;

  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: linear-gradient(180deg, rgba(6,10,24,.92), rgba(6,10,24,.62));

  border-top: 1px solid var(--wst-h-line2);
  border-bottom: 1px solid var(--wst-h-line);

  box-shadow: var(--wst-h-shadow);
}

.wst-header .inner{
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 18px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

/* ─────────────────────────────────────────
   Brand
───────────────────────────────────────── */

.wst-brand{
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 240px;

  color: var(--wst-text);
  text-decoration: none;
}

.wst-brand .logo{
  width: 44px;
  height: 44px;

  border-radius: 14px;
  overflow: hidden;

  display: grid;
  place-items: center;

  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
}

.wst-brand img{
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.wst-brand .title{
  font-weight: 800;
  letter-spacing: .08em;
  font-size: 14px;
  text-transform: uppercase;
  line-height: 1.1;
}

.wst-brand .tag{
  display: block;
  margin-top: 3px;
  font-size: 12px;
  line-height: 1.1;
  color: var(--wst-muted);
}

/* ─────────────────────────────────────────
   Primary Navigation
───────────────────────────────────────── */

.wst-nav{
  display: flex;
  align-items: center;
  gap: 18px;
  white-space: nowrap;
}

.wst-nav a{
  font-size: 14px;
  color: var(--wst-muted);
  text-decoration: none;

  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid transparent;

  transition: all .15s ease;
}

.wst-nav a:hover{
  color: var(--wst-text);
  background: rgba(255,255,255,.04);
  border-color: rgba(255,255,255,.12);
}

.wst-nav a.is-active{
  color: var(--wst-accent2);
  background: rgba(246,196,92,.12);
  border-color: rgba(246,196,92,.35);
}

/* ─────────────────────────────────────────
   Actions / Buttons
───────────────────────────────────────── */

.wst-actions{
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;

  height: 40px;
  padding: 0 16px;

  font-size: 14px;
  color: var(--wst-text);
  text-decoration: none;

  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);

  transition: all .15s ease;
}

.btn:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.22);
}

.btn-primary{
  color: var(--wst-accent2);
  background: rgba(246,196,92,.14);
  border-color: rgba(246,196,92,.38);
}

.btn-primary:hover{
  background: rgba(246,196,92,.18);
  border-color: rgba(246,196,92,.55);
}

/* ─────────────────────────────────────────
   Responsive Safety
───────────────────────────────────────── */

@media (max-width: 980px){
  .wst-nav{
    display: none;
  }
}
