/* ================================================================
   easyNag — CSS
================================================================ */

/* ── Design tokens ─────────────────────────────────────────── */
:root {
  /* Brand */
  --red: #c01b28;
  --red-hover: #a21522;
  --red-faint: #fdf1f2;
  --red-border: rgba(192, 27, 40, 0.2);
  /* Dark palette */
  --navy: #0f1623;
  --navy2: #131c2e;
  --navy3: #1a2540;
  /* Surfaces */
  --bg: #f5f6f8;
  --surface: #ffffff;
  --border: #e3e7ef;
  --border2: #cdd3df;
  /* Typography */
  --text: #0f1623;
  --text2: #3d4a5c;
  --muted: #6b7a90;
  --muted2: #9aa3b0;
  --heading: #0f1623;
  --btn-text: #fff;
  --font-body:
    system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;
  /* Code */
  --code-bg: #161e2e;
  --code-border: #252f42;
  /* Status */
  --green: #18794e;
  --green-faint: #f0faf4;
  --green-border: rgba(24, 121, 78, 0.2);
  --amber: #b45309;
  --amber-faint: #fffbeb;
  --amber-border: rgba(180, 83, 9, 0.2);
  --sky: #0369a1;
  --sky-faint: #f0f7ff;
  --sky-border: rgba(3, 105, 161, 0.2);
}

/* ── Dark mode base overrides ──────────────────────────────── */
[data-theme="dark"] {
  --bg: #090e1b;
  --surface: #111827;
  --border: rgba(255, 255, 255, 0.08);
  --text: #c9d4e8;
  --text2: #8898b3;
  --muted: #6b7a90;
  --heading: #e8edf5;
  --red-faint: rgba(192, 27, 40, 0.12);
  --red-border: rgba(192, 27, 40, 0.35);
}

/* ── Base reset ────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.7;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  transition:
    background-color 0.3s,
    color 0.3s;
}
.container {
  max-width: 1100px;
  margin: 0 auto;
}

/* ── Nav ───────────────────────────────────────────────────── */
.site-nav {
  background: var(--navy);
  padding: 0 48px;
  display: flex;
  align-items: center;
  height: 64px;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.2px;
  flex-shrink: 0;
}
.nav-brand img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
  list-style: none;
}
.nav-links a {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  font-size: 14px;
  font-weight: 400;
  transition: color 0.15s;
  white-space: nowrap;
}
.nav-links a:hover,
.nav-links a.active {
  color: rgba(255, 255, 255, 0.9);
}
.theme-toggle-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.6);
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
  transition: all 0.15s;
  flex-shrink: 0;
}
.theme-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}
[data-theme="light"] .icon-sun {
  display: none;
}
[data-theme="dark"] .icon-moon {
  display: none;
}
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 2px;
  transition: all 0.2s;
}
@media (max-width: 820px) {
  .site-nav {
    padding: 0 20px;
  }
  .nav-toggle {
    display: flex;
  }
  .nav-links {
    display: none;
    flex-direction: column;
    gap: 0;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--navy);
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    align-items: flex-start;
  }
  .nav-links.open {
    display: flex;
  }
  .nav-links a {
    padding: 10px 0;
    font-size: 15px;
    width: 100%;
  }
}

/* ── Footer ────────────────────────────────────────────────── */
.site-footer {
  background: var(--navy);
  padding: 48px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 12px;
  text-decoration: none;
}
.footer-brand img {
  width: 25px;
  height: 25px;
  object-fit: contain;
}
.footer-brand span {
  font-size: 16px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.8);
}
.footer-tagline {
  color: rgba(255, 255, 255, 0.3);
  font-size: 13px;
  line-height: 1.6;
  max-width: 220px;
}
.footer-col h5 {
  color: rgba(255, 255, 255, 0.5);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-col a {
  color: rgba(255, 255, 255, 0.35);
  font-size: 13.5px;
  text-decoration: none;
  transition: color 0.15s;
}
.footer-col a:hover {
  color: rgba(255, 255, 255, 0.75);
}
.footer-col p {
  color: rgba(255, 255, 255, 0.35);
  font-size: 13.5px;
  line-height: 1.6;
}
.footer-col b {
  color: rgba(255, 255, 255, 0.6);
}
.footer-bottom {
  max-width: 1100px;
  margin: 32px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p {
  color: rgba(255, 255, 255, 0.2);
  font-size: 12px;
}
.footer-bottom a {
  color: rgba(255, 255, 255, 0.2);
  font-size: 12px;
  text-decoration: none;
}
.footer-bottom a:hover {
  color: rgba(255, 255, 255, 0.5);
}
@media (max-width: 900px) {
  .site-footer {
    padding: 40px 20px;
  }
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}
@media (max-width: 540px) {
  .footer-inner {
    grid-template-columns: 1fr;
  }
}

/* ── Simple content pages (imprint, terms, privacy) ────────── */
.page-content {
  max-width: 720px;
  margin: 60px auto;
  padding: 0 24px 80px;
}
.page-content h1 {
  font-size: 28px;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 24px;
}
.page-content p {
  color: var(--text2);
  line-height: 1.8;
  font-size: 15px;
}
.page-content a {
  color: var(--red);
  text-decoration: none;
}
.page-content a:hover {
  text-decoration: underline;
}
