/* ════════════════════════════════════════
   BUDA HACK SECURITY — Updates (banner, changelog, newsletter)
   Own tokens so it looks the same on every page,
   regardless of each page's local variable names.
════════════════════════════════════════ */
:root {
  --bhs-accent:      #ffe600;
  --bhs-accent-dim:  rgba(255,230,0,.10);
  --bhs-accent-line: rgba(255,230,0,.22);
  --bhs-bg:          #030812;
  --bhs-bg-raised:   #050d1c;
  --bhs-text-hi:     #f0f0f0;
  --bhs-text:        #b4b4b4;
  --bhs-text-muted:  #8a8a8a;
  --bhs-border:      rgba(255,255,255,.08);
  --bhs-border-hi:   rgba(255,255,255,.16);
  --bhs-ok:          #4ade80;
  --bhs-err:         #ff6b6b;
  --bhs-sans:        'Inter', system-ui, sans-serif;
  --bhs-grotesk:     'Space Grotesk', 'Inter', sans-serif;
  --bhs-mono:        'JetBrains Mono', ui-monospace, monospace;
  --bhs-radius:      6px;
}

/* ── Announcement banner ── */
.bhs-banner {
  position: relative;
  z-index: 950;
  background: linear-gradient(90deg, var(--bhs-accent-dim), rgba(139,92,246,.08));
  border-bottom: 1px solid var(--bhs-accent-line);
  font-family: var(--bhs-sans);
  animation: bhs-banner-in .3s ease-out;
}
.bhs-banner__inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.bhs-banner__tag {
  flex-shrink: 0;
  font-family: var(--bhs-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #000;
  background: var(--bhs-accent);
  padding: 2px 8px;
  border-radius: 100px;
}
.bhs-banner__text {
  flex: 1;
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--bhs-text-hi);
}
.bhs-banner__link {
  color: var(--bhs-accent);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
}
.bhs-banner__link:hover { color: #fff; }
.bhs-banner__close {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  font-size: 13px;
  color: var(--bhs-text);
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--bhs-radius);
  cursor: pointer;
  transition: color .2s, border-color .2s;
}
.bhs-banner__close:hover { color: var(--bhs-text-hi); border-color: var(--bhs-border-hi); }

.bhs-banner a:focus-visible,
.bhs-banner button:focus-visible {
  outline: 2px solid var(--bhs-accent);
  outline-offset: 2px;
}

@keyframes bhs-banner-in {
  from { opacity: 0; transform: translateY(-100%); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .bhs-banner { animation: none; }
}
@media (max-width: 576px) {
  .bhs-banner__inner { align-items: flex-start; gap: 8px; padding: 8px 12px; }
  .bhs-banner__tag { margin-top: 2px; }
  .bhs-banner__text { font-size: 12px; }
}

/* ── Changelog timeline (updates.html) ── */
.bhs-updates {
  list-style: none;
  margin: 0;
  padding: 0 0 0 24px;
  border-left: 1px solid var(--bhs-border-hi);
}
.bhs-entry {
  position: relative;
  padding-bottom: 32px;
  scroll-margin-top: 80px;
}
.bhs-entry:last-child { padding-bottom: 0; }
.bhs-entry::before {
  content: '';
  position: absolute;
  left: -29px;
  top: 7px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--bhs-accent);
  box-shadow: 0 0 10px rgba(255,230,0,.5);
}
.bhs-entry__date {
  display: block;
  margin-bottom: 8px;
  font-family: var(--bhs-mono);
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--bhs-accent);
}
.bhs-entry__card {
  background: var(--bhs-bg);
  border: 1px solid var(--bhs-border);
  border-radius: 12px;
  padding: 20px 24px;
  transition: border-color .2s;
}
.bhs-entry:target .bhs-entry__card,
.bhs-entry__card:hover { border-color: var(--bhs-accent-line); }
.bhs-entry__title {
  margin: 0 0 6px;
  font-family: var(--bhs-grotesk);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--bhs-text-hi);
}
.bhs-entry__desc {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--bhs-text);
}
.bhs-entry__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--bhs-accent);
  text-decoration: none;
}
.bhs-entry__link:hover { color: #fff; }
.bhs-entry__link:focus-visible {
  outline: 2px solid var(--bhs-accent);
  outline-offset: 3px;
  border-radius: 2px;
}
.bhs-updates__empty {
  font-family: var(--bhs-mono);
  font-size: 12px;
  color: var(--bhs-text-muted);
}
@media (max-width: 576px) {
  .bhs-updates { padding-left: 18px; }
  .bhs-entry::before { left: -23px; }
  .bhs-entry__card { padding: 16px; }
  .bhs-entry__title { font-size: 16px; }
}

/* Pages with a non-collapsing nav (contact, disclaimer, thanks):
   let the links scroll horizontally on small screens instead of overflowing. */
@media (max-width: 767.98px) {
  .navbar-nav-wrap {
    min-width: 0;
    flex: 1 1 auto;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .navbar-nav-wrap::-webkit-scrollbar { display: none; }
  .navbar-nav-wrap > * { flex-shrink: 0; }
}

/* ── Newsletter ("Stay up to date") ── */
.bhs-newsletter {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 32px;
  align-items: start;
  padding: 32px;
  background:
    radial-gradient(ellipse at top left, rgba(255,230,0,.07), transparent 60%),
    var(--bhs-bg);
  border: 1px solid var(--bhs-border);
  border-radius: 16px;
  scroll-margin-top: 80px;
}
.bhs-newsletter__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--bhs-mono);
  font-size: 10px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--bhs-accent);
  margin-bottom: 10px;
}
.bhs-newsletter__title {
  margin: 0 0 10px;
  font-family: var(--bhs-grotesk);
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--bhs-text-hi);
}
.bhs-newsletter__text {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--bhs-text);
}
.bhs-newsletter__alt {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--bhs-mono);
  font-size: 11px;
  color: var(--bhs-text-muted);
}
.bhs-newsletter__alt a { color: var(--bhs-accent); }
.bhs-newsletter__form { display: grid; gap: 14px; margin: 0; }
.bhs-field { display: grid; gap: 6px; }
.bhs-field label {
  font-family: var(--bhs-mono);
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--bhs-text);
}
.bhs-field .bhs-optional { text-transform: none; letter-spacing: 0; color: var(--bhs-text-muted); }
.bhs-field input {
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  font-family: var(--bhs-sans);
  font-size: 15px;
  color: var(--bhs-text-hi);
  background: var(--bhs-bg-raised);
  border: 1px solid var(--bhs-border-hi);
  border-radius: var(--bhs-radius);
  transition: border-color .2s, box-shadow .2s;
}
.bhs-field input::placeholder { color: var(--bhs-text-muted); opacity: 1; }
.bhs-field input:hover { border-color: rgba(255,255,255,.28); }
.bhs-field input:focus-visible {
  outline: none;
  border-color: var(--bhs-accent);
  box-shadow: 0 0 0 3px rgba(255,230,0,.25);
}
.bhs-field input[aria-invalid="true"] { border-color: var(--bhs-err); }
.bhs-field input[aria-invalid="true"]:focus-visible { box-shadow: 0 0 0 3px rgba(255,107,107,.25); }
/* Honeypot: off-screen for humans (not display:none, some bots skip hidden fields) */
.bhs-hp {
  position: absolute !important;
  left: -10000px !important;
  width: 1px; height: 1px;
  overflow: hidden;
}
.bhs-turnstile:empty { display: none; }
.bhs-newsletter__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 24px;
  font-family: var(--bhs-sans);
  font-size: 14px;
  font-weight: 600;
  color: #000;
  background: var(--bhs-accent);
  border: none;
  border-radius: var(--bhs-radius);
  cursor: pointer;
  transition: opacity .2s, transform .2s, box-shadow .2s;
}
.bhs-newsletter__submit:hover { opacity: .9; transform: translateY(-1px); box-shadow: 0 0 24px rgba(255,230,0,.25); }
.bhs-newsletter__submit:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.bhs-newsletter__submit:disabled { opacity: .6; cursor: progress; transform: none; box-shadow: none; }
.bhs-newsletter__consent {
  margin: 0;
  font-size: 12px;
  line-height: 1.55;
  color: var(--bhs-text-muted);
}
.bhs-newsletter__status {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--bhs-text);
}
.bhs-newsletter__status:empty { display: none; }
.bhs-newsletter__status.is-success { color: var(--bhs-ok); }
.bhs-newsletter__status.is-error { color: var(--bhs-err); }
@media (max-width: 767.98px) {
  .bhs-newsletter { grid-template-columns: 1fr; gap: 20px; padding: 24px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .bhs-newsletter__submit { transition: none; }
}

/* "View Projects" is under construction: shown but not clickable */
.nav-cta.is-soon {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  cursor: not-allowed;
  opacity: .6;
  user-select: none;
}
.nav-cta.is-soon:hover { opacity: .6; transform: none !important; }
.nav-soon {
  font-family: var(--bhs-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 1px 6px;
  border-radius: 100px;
  border: 1px solid rgba(0,0,0,.45);
}
