/*
 * signaH — Nav bar
 * Matches the signah-website dark navigation exactly.
 * login/resources/css/nav.css
 */

/* ── Nav tokens ──────────────────────────────────────────── */
:root {
  --sh-nav-bg:          rgba(26, 10, 13, 0.96);
  --sh-nav-border:      rgba(59, 0, 0, 0.9);
  --sh-nav-surface:     #2A0A0D;
  --sh-nav-raised:      #3B0000;
  --sh-nav-text:        rgba(252, 165, 165, 0.55);  /* muted rose */
  --sh-nav-text-active: #FECACA;                     /* blush */
  --sh-nav-text-hover:  #FAF8F5;                     /* warm white */
  --sh-nav-height:      64px;
}

/* ── Fixed bar ───────────────────────────────────────────── */
.sh-navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--sh-nav-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--sh-nav-border);
}

.sh-navbar__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: var(--sh-nav-height);
  display: flex;
  align-items: center;
  gap: 32px;
}

/* ── Logo ────────────────────────────────────────────────── */
.sh-navbar__logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
  opacity: 0.95;
  transition: opacity 0.15s;
}

.sh-navbar__logo:hover {
  opacity: 1;
  text-decoration: none;
}

/* ── Nav links ───────────────────────────────────────────── */
.sh-navbar__nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}

.sh-navbar__link {
  padding: 6px 12px;
  border-radius: 6px;
  text-decoration: none;
  color: var(--sh-nav-text);
  font-size: 15px;
  font-weight: 450;
  transition: color 0.15s, background 0.15s;
}

.sh-navbar__link:hover {
  color: var(--sh-nav-text-hover);
  background: var(--sh-nav-surface);
  text-decoration: none;
}

/* ── Auth buttons ────────────────────────────────────────── */
.sh-navbar__auth {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.sh-navbar__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  padding: 0 14px;
  border-radius: 8px;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  white-space: nowrap;
}

.sh-navbar__btn--ghost {
  background: transparent;
  color: #FECACA;
  border-color: #3B0000;
}

.sh-navbar__btn--ghost:hover {
  background: #2A0A0D;
  color: #FAF8F5;
  border-color: rgba(252, 165, 165, 0.2);
  text-decoration: none;
}

.sh-navbar__btn--primary {
  background: #9B2335;
  color: #FAF8F5;
  border-color: #9B2335;
}

.sh-navbar__btn--primary:hover {
  background: #7A1228;
  border-color: #7A1228;
  text-decoration: none;
}

/* ── Mobile burger (CSS-only, no JS needed) ──────────────── */
#sh-nav-toggle { display: none; }

.sh-navbar__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 6px;
  cursor: pointer;
  margin-left: auto;
}

.sh-navbar__burger span {
  display: block;
  height: 2px;
  background: var(--sh-nav-text);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

/* ── Header inside card ──────────────────────────────────── */
#kc-header-wrapper::before { display: none !important; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 640px) {
  .sh-navbar__nav {
    display: none;
  }

  .sh-navbar__burger {
    display: flex;
  }
}
