:root {
  --ca-bg: #020617;       /* main background */
  --ca-surface: #02081b;  /* cards / hero */
  --ca-surface-soft: #030b24;
  --ca-border: #111827;
  --ca-border-soft: #1f2937;
  --ca-text: #e5e7eb;
  --ca-muted: #9ca3af;
  --ca-primary: #38bdf8;  /* accent blue */
}

/* Base */
body.theme-dark {
  background-color: var(--ca-bg);
  color: var(--ca-text);
}

/* Sticky header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1030;
}

/* Navy backgrounds */
.bg-navy {
  background-color: var(--ca-bg) !important;
}

.bg-navy-soft {
  background-color: var(--ca-surface-soft) !important;
}

/* Navbar */
.navbar-dark {
  background-color: var(--ca-bg) !important;
}

/* Base link styling */
.navbar-dark .navbar-nav .nav-link {
  color: #cbd5f5;
  transition: color 0.2s ease-out, text-shadow 0.25s ease-out;
}

/* Hover glow */
.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link:focus {
  color: var(--ca-primary);
  text-shadow:
    0 0 6px  rgba(56, 189, 248, 0.85),
    0 0 14px rgba(56, 189, 248, 0.65),
    0 0 24px rgba(56, 189, 248, 0.45);
}

/* Active page glow (stronger) */
.navbar-dark .navbar-nav .nav-link.active,
.navbar-dark .navbar-nav .nav-link[aria-current="page"] {
  font-weight: 600;
  color: var(--ca-primary);
  text-shadow:
    0 0 8px  rgba(56, 189, 248, 0.9),
    0 0 20px rgba(56, 189, 248, 0.6),
    0 0 30px rgba(56, 189, 248, 0.4);
}

/* HEADER LOGO — default neon aura */
.navbar-logo-img {
  width: 42px;
  height: 42px;
  border-radius: 999px; /* circular glow */
  transition: transform 0.25s ease-out,
              box-shadow 0.25s ease-out,
              filter 0.25s ease-out;
  box-shadow:
    0 0 6px  rgba(56, 189, 248, 0.35),
    0 0 12px rgba(56, 189, 248, 0.25);
}

/* HEADER LOGO — hover glow */
.navbar-logo-img:hover {
  transform: translateY(-1px) rotate(-1deg);
  filter: brightness(1.15);
  box-shadow:
    0 0 10px rgba(56, 189, 248, 0.9),
    0 0 22px rgba(56, 189, 248, 0.65),
    0 0 36px rgba(56, 189, 248, 0.4);
}

/* HERO */
.hero {
  background-color: var(--ca-surface);
  border-radius: 0.9rem;
  border: 1px solid var(--ca-border);
  box-shadow: 0 1.5rem 3rem rgba(15, 23, 42, 0.8);
  padding: 2.5rem 2rem;
}

@media (max-width: 767.98px) {
  .hero {
    padding: 1.75rem 1.25rem;
  }
}

.hero .lead {
  font-weight: 500;
}

/* Side panel */
.bg-surface,
.focus-panel {
  background-color: var(--ca-surface-soft) !important;
  border-color: var(--ca-border-soft) !important;
}

/* Cards */
.card {
  background-color: var(--ca-surface);
  border-color: var(--ca-border-soft);
  color: var(--ca-text);
  border-radius: 0.9rem;
}

/* Artwork area */
.card-visual {
  overflow: hidden;
  border-bottom: 1px solid var(--ca-border-soft);
}

.card-visual img {
  width: 100%;
  display: block;
  height: auto;
  border-radius: 0.9rem 0.9rem 0 0;
}

/* Subtle hover lift for cards */
.card-raise {
  transition:
    transform 0.15s ease-out,
    box-shadow 0.15s ease-out,
    border-color 0.15s ease-out;
}

.card-raise:hover,
.card-raise:focus-within {
  transform: translateY(-2px);
  box-shadow: 0 1.25rem 2.5rem rgba(15, 23, 42, 0.9);
  border-color: var(--ca-primary);
}

/* Clickable title links inside cards */
.card-title-link {
  color: inherit;
  text-decoration: none;
}

.card-title-link:hover,
.card-title-link:focus {
  color: var(--ca-primary);
  text-decoration: underline;
}

/* Text colours */
.text-secondary {
  color: var(--ca-muted) !important;
}

.text-muted {
  color: #6b7280 !important;
}

/* Links */
a {
  color: var(--ca-primary);
}

a:hover,
a:focus {
  color: #7dd3fc;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0.5rem;
  z-index: 2000;
  padding: 0.5rem 0.75rem;
  background: var(--ca-primary);
  color: #020617;
  text-decoration: none;
  border-radius: 0.25rem;
}

.skip-link:focus {
  left: 0.5rem;
}

/* Focus outlines */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid var(--ca-primary);
  outline-offset: 2px;
}

/* Footer */
.footer {
  border-top: 1px solid var(--ca-border-soft);
  color: var(--ca-muted);
}

/* Make footer links block-level and spaced */
.site-footer .footer-column a {
  display: block;
  margin-bottom: 0.15rem;
  color: #cfd4ff;
  text-decoration: none;
}

/* Footer link hover glow */
.site-footer .footer-column a:hover {
  color: #7fe9ff;
  text-shadow:
    0 0 6px  rgba(56, 189, 248, 0.85),
    0 0 14px rgba(56, 189, 248, 0.65),
    0 0 24px rgba(56, 189, 248, 0.45);
}

/* BRAND / LOGO in footer */
.footer-brand {
  gap: 0.6rem;
}

.footer-logo-img {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  transition: transform 0.25s ease-out, box-shadow 0.25s ease-out, filter 0.25s ease-out;
  box-shadow:
    0 0 4px  rgba(56, 189, 248, 0.4),
    0 0 10px rgba(56, 189, 248, 0.3);
}

.footer-logo-img:hover {
  transform: translateY(-1px) rotate(-1deg);
  filter: brightness(1.2);
  box-shadow:
    0 0 8px  rgba(56, 189, 248, 0.9),
    0 0 20px rgba(56, 189, 248, 0.6),
    0 0 32px rgba(56, 189, 248, 0.4);
}

/* MOBILE / SMALL VIEWPORTS */
@media (max-width: 767.98px) {
  .site-footer .footer-main-row {
    text-align: center;
  }

  .site-footer .footer-brand {
    justify-content: center;
  }

  .site-footer .footer-column {
    margin-top: 0.75rem;
  }

  .site-footer .footer-meta {
    justify-content: center;
    text-align: center;
  }
}

/* Back-to-top button */
.back-to-top {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 1040;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  font-size: 0.9rem;
  line-height: 1;
  border-color: rgba(127, 233, 255, 0.7);
  color: #e6f7ff;
  background: rgba(5, 22, 48, 0.75);
  box-shadow:
    0 0 0 rgba(0, 229, 255, 0),
    0 0 0 rgba(0, 229, 255, 0);
  backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition:
    opacity 0.2s ease-out,
    transform 0.2s ease-out,
    box-shadow 0.2s ease-out,
    background 0.2s ease-out;
}

.back-to-top.back-to-top--visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top:hover {
  background: rgba(5, 32, 78, 0.95);
  box-shadow:
    0 0 8px rgba(0, 229, 255, 0.8),
    0 0 18px rgba(0, 229, 255, 0.6);
}

/* ==== QUESTIONS / CHANGE LOG / SHARE meta row ==== */

/* Questions + Change log cards */
.questions-box {
  position: relative;
  overflow: hidden;
  border-radius: 0.9rem;
  padding: 1.25rem 1.4rem;

  /* subtle cyber gradient */
  background:
    radial-gradient(circle at 0% 0%, rgba(56, 189, 248, 0.10), transparent 55%),
    linear-gradient(135deg, #02081b 0%, #030b24 60%, #020617 100%);

  border: 1px solid rgba(15, 23, 42, 0.9);
  transition:
    transform 0.2s ease-out,
    box-shadow 0.2s ease-out,
    border-color 0.2s ease-out;
}

.questions-box:hover,
.questions-box:focus-within {
  transform: translateY(-2px);
  border-color: rgba(56, 189, 248, 0.8);
  box-shadow:
    0 18px 40px rgba(15, 23, 42, 0.9),
    0 0 18px rgba(56, 189, 248, 0.25);
}

/* Zilchy-style share card – identical look to password tools page */
.share-card {
  position: relative;
  overflow: hidden;
  border-radius: 0.9rem;
  padding: 1.25rem 1.4rem;
  background:
    radial-gradient(circle at 0% 0%, rgba(0, 255, 204, 0.12), transparent 55%),
    radial-gradient(circle at 100% 100%, rgba(255, 0, 153, 0.16), transparent 55%),
    linear-gradient(135deg, #050816 0%, #060b1e 45%, #120420 100%);
  border: 1px solid rgba(120, 180, 255, 0.35);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.7),
    0 18px 35px rgba(0, 0, 0, 0.85),
    0 0 28px rgba(0, 180, 255, 0.15);
  transition:
    transform 0.2s ease-out,
    box-shadow 0.2s ease-out,
    border-color 0.2s ease-out;
}

.share-card:hover,
.share-card:focus-within {
  transform: translateY(-2px);
  border-color: rgba(56, 189, 248, 0.9);
  box-shadow:
    0 22px 48px rgba(0, 0, 0, 0.9),
    0 0 26px rgba(56, 189, 248, 0.4);
}

/* grid overlay on share card */
.share-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.4;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
}

.share-card > * {
  position: relative;
  z-index: 1;
}

/* URL pill inside share card */
.share-url-row {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(180, 220, 255, 0.3);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
    "Liberation Mono", "Courier New", monospace;
}

.share-url-prefix {
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.8rem;
}

.share-url-main {
  border: none;
  background: transparent;
  padding: 0;
  margin: 0;
  color: #e5f2ff;
  font-size: 0.85rem;
  cursor: pointer;
  white-space: nowrap;
}

.share-url-main:hover,
.share-url-main:focus-visible {
  text-decoration: underline;
  outline: none;
}

/* state after copy */
.share-url-main.copied .share-url-text {
  color: #7bffcf;
}

/* optional status line */
.share-status {
  min-height: 1.1em;
}


