/* ==========================================================
   Nanobyte Security — shared header (.nb-nav) + footer
   Load this SAME file on BOTH sites:
     nanobytesecurity.com       -> assets/css/nanobyte-header.css
     blog.nanobytesecurity.com  -> assets/css/nanobyte-header.css
   Any change here must be copied to both repos.
   ========================================================== */

@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;700&display=swap');

:root {
  --nbh-bg:        #0A0D0B;
  --nbh-surface:   #0F1411;
  --nbh-border:    #1F2A22;
  --nbh-text:      #E6EDE8;
  --nbh-text-2:    #A7B8AC;
  --nbh-muted:     #7F9687;
  --nbh-accent:    #4ADE80;
  --nbh-accent-hi: #86EFAC;
  --nbh-on-accent: #06140B;
  --nbh-mono: 'JetBrains Mono', ui-monospace, monospace;
}

/* ----------------------------------------------------------
   Header (.nb-nav) — same markup on both sites
   ---------------------------------------------------------- */

/* Neutralize Bootstrap's .navbar class (kept only so the theme's script doesn't error) */
.nb-nav.navbar {
  display: block;
  position: static;
  padding: 0;
  margin: 0;
}

.nb-nav {
  background: var(--nbh-bg);
  border-bottom: 1px solid var(--nbh-border);
}

.nb-nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  font-family: var(--nbh-mono);
}

.nb-nav .nb-brand {
  color: var(--nbh-text);
  font-weight: 700;
  text-decoration: none;
}

.nb-nav .nb-brand span {
  color: var(--nbh-accent);
}

.nb-nav .nb-brand:hover {
  color: var(--nbh-text);
}

.nb-nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
  font-size: 0.85rem;
}

.nb-nav-links a {
  color: var(--nbh-text-2);
  text-decoration: none;
}

.nb-nav-links a:hover,
.nb-nav-links a:focus {
  color: var(--nbh-accent);
}

.nb-nav-links .nb-nav-cta {
  color: var(--nbh-accent);
  border: 1px solid var(--nbh-accent);
  padding: 9px 14px;
  border-radius: 6px;
}

.nb-nav-links .nb-nav-cta:hover,
.nb-nav-links .nb-nav-cta:focus {
  background: var(--nbh-accent);
  color: var(--nbh-on-accent);
}

/* Beautiful Jekyll pads the page for its fixed navbar; the new header isn't fixed */
body {
  padding-top: 0 !important;
}

.intro-header {
  margin-top: 0 !important;
}

@media (max-width: 600px) {
  .nb-nav-links a:not(.nb-nav-cta) {
    display: none;
  }
}

/* ----------------------------------------------------------
   Footer
   ---------------------------------------------------------- */

footer {
  background: var(--nbh-bg) !important;
  border-top: 1px solid var(--nbh-border);
  font-family: var(--nbh-mono);
  font-size: 0.8rem;
  margin-top: 64px;
  padding: 40px 0 32px;
}

footer,
footer a,
footer .text-muted,
footer .copyright,
footer .theme-by {
  color: var(--nbh-muted) !important;
}

footer a:hover {
  color: var(--nbh-accent) !important;
}

footer .footer-links .fa-stack .fa-circle {
  color: var(--nbh-surface);
}

footer .footer-links .fa-stack .fa-inverse {
  color: var(--nbh-text-2);
}

footer .footer-links a:hover .fa-inverse {
  color: var(--nbh-accent);
}

/* Belt-and-braces: hide the theme credit even if the config flag is missing */
footer .theme-by {
  display: none !important;
}
