

/* NodeMaven look: white, soft blue/teal glow, teal->blue gradient accents, black buttons. */
:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #f5f6f8;
  --text: #0b0c0f;
  --muted: #5f6573;
  --border: #e9eaf0;
  --accent: #3f7fe6;
  --accent-soft: #eef4fe;
  --teal: #5cc8c6;
  --grad: linear-gradient(90deg, #5cc8c6 0%, #4a8fe7 55%, #3f6fe0 100%);
  --glow-1: rgba(120, 150, 245, .35);
  --glow-2: rgba(110, 210, 205, .28);
  --button: #0b0c0f;
  --button-text: #ffffff;
  --added: #e6f7ef;
  --added-text: #127a45;
  --removed: #fdecec;
  --removed-text: #b42323;
  --highlight: #ef4444;
  --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 8px 24px rgba(16, 24, 40, .04);
  --radius: 16px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0c10;
    --surface: #14161c;
    --surface-2: #1b1e26;
    --text: #f1f2f5;
    --muted: #9aa1ae;
    --border: #262a34;
    --accent: #7aa8ff;
    --accent-soft: #1a2333;
    --glow-1: rgba(90, 120, 240, .22);
    --glow-2: rgba(70, 190, 185, .16);
    --button: #ffffff;
    --button-text: #0b0c0f;
    --added: #10291c;
    --added-text: #7fe0aa;
    --removed: #331616;
    --removed-text: #ff9e9e;
    --highlight: #ff6b6b;
    --shadow: none;
  }
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.55 "Roobert", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  position: relative;
  min-height: 100vh;
}
/* Soft glow behind the top of every page, like on nodemaven.com */
body::before {
  content: ""; position: absolute; z-index: -1; left: 50%; top: -120px;
  width: min(1400px, 140vw); height: 620px; transform: translateX(-50%);
  background:
    radial-gradient(40% 55% at 30% 45%, var(--glow-1), transparent 70%),
    radial-gradient(35% 50% at 72% 40%, var(--glow-1), transparent 70%),
    radial-gradient(30% 40% at 55% 75%, var(--glow-2), transparent 70%);
  filter: blur(40px);
  pointer-events: none;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- layout ---------- */
.topbar {
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 10;
}
.topbar-inner {
  max-width: 1160px; margin: 0 auto; padding: 0 16px;
  display: flex; align-items: center; gap: 28px; height: 68px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); white-space: nowrap; font-size: 22px; letter-spacing: -.01em; }
.brand:hover { text-decoration: none; }
.brand b { font-weight: 700; }
.brand span { font-weight: 400; }
.brand-mark { width: auto; height: 34px; flex: none; display: block; }
.brand-tag {
  font-size: 12px; font-weight: 600; color: var(--button-text); background: var(--accent);
  padding: 2px 8px; border-radius: 6px; letter-spacing: 0;
}
.nav { display: flex; gap: 4px; overflow-x: auto; margin-left: auto; }
.nav a {
  color: var(--text); padding: 9px 16px; border-radius: 12px; white-space: nowrap; font-weight: 500;
}
.nav a:hover { background: var(--surface-2); text-decoration: none; }
.nav a.active { background: var(--button); color: var(--button-text); }

main { max-width: 1160px; margin: 0 auto; padding: 40px 16px 80px; }
h1 { font-size: 40px; line-height: 1.12; font-weight: 700; margin: 0 0 10px; letter-spacing: -.02em; }
h2 { font-size: 22px; font-weight: 700; letter-spacing: -.01em; margin: 40px 0 14px; }
.subtitle { color: var(--muted); font-size: 17px; margin: 0 0 28px; max-width: 720px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }

.demo-banner {
  background: #fff4d6; color: #6b4e00; border: 1px solid #f1d98a;
  padding: 8px 12px; border-radius: 8px; margin-bottom: 20px; font-size: 14px;
}
@media (prefers-color-scheme: dark) {
  .demo-banner { background: #3a2f10; color: #f3d98a; border-color: #5c4a17; }
}

/* ---------- filters ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
select, input[type="search"] {
  font: inherit; font-weight: 500; color: var(--text); background: var(--surface-2);
  border: 1px solid transparent; border-radius: 12px; padding: 9px 14px; min-height: 44px;
}
input[type="search"] { flex: 1 1 220px; }
select:focus, input:focus { outline: 2px solid var(--accent); outline-offset: -1px; }

/* ---------- feed ---------- */
.day { margin-bottom: 28px; }
.day-title { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin: 0 0 10px; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px 22px; box-shadow: var(--shadow); margin-bottom: 12px;
}
.card-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.logo {
  width: 30px; height: 30px; border-radius: 9px; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 13px;
}
.company { font-weight: 600; color: var(--text); font-size: 16px; }
.badge {
  font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px;
  background: var(--surface-2); color: var(--muted); border: 1px solid var(--border); white-space: nowrap;
}
.badge.homepage { background: var(--accent-soft); color: var(--accent); border-color: transparent; }
.badge.new { background: var(--button); color: var(--button-text); border-color: transparent; }
.badge.blog { background: var(--added); color: var(--added-text); border-color: transparent; }
.badge.archive { background: transparent; }
.card-title { font-weight: 600; font-size: 17px; margin: 6px 0; }
.card-title a { color: var(--text); }
.card-body { margin: 4px 0 8px; }
.card-foot { display: flex; gap: 16px; flex-wrap: wrap; font-size: 14px; }
.topics { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.empty {
  text-align: center; color: var(--muted); padding: 48px 16px;
  border: 1px dashed var(--border); border-radius: var(--radius);
}

/* ---------- change page ---------- */
.summary {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px 22px; margin-bottom: 28px; box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.summary::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--grad); }
.summary-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 6px; display: table; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.compare-toolbar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; }
.compare-toolbar label { display: inline-flex; gap: 6px; align-items: center; cursor: pointer; }
button {
  font: inherit; font-size: 14px; font-weight: 600; color: var(--button-text); background: var(--button);
  border: none; border-radius: 12px; padding: 10px 18px; cursor: pointer;
}
button:hover { opacity: .85; }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pane { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.pane-label { font-size: 13px; font-weight: 600; padding: 8px 12px; border-bottom: 1px solid var(--border); }
.pane-scroll { height: 72vh; overflow-y: auto; }
.shot { position: relative; }
.shot img { display: block; width: 100%; height: auto; }
.box { position: absolute; border: 3px solid var(--highlight); border-radius: 4px; background: rgba(229, 72, 77, .08); pointer-events: none; }
.hide-boxes .box { display: none; }
.no-visual { padding: 12px 16px; }

.diff-section { margin-bottom: 18px; }
.diff-section h3 { font-size: 14px; margin: 0 0 8px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.diff-line { padding: 8px 12px; border-radius: 8px; margin-bottom: 6px; background: var(--surface); border: 1px solid var(--border); }
.diff-line.added { background: var(--added); border-color: transparent; }
.diff-line.removed { background: var(--removed); border-color: transparent; text-decoration: line-through; text-decoration-color: var(--removed-text); }
.diff-tag { font-size: 12px; font-weight: 700; margin-right: 8px; }
.added .diff-tag, ins { color: var(--added-text); }
.removed .diff-tag, del { color: var(--removed-text); }
ins { background: var(--added); text-decoration: none; border-radius: 3px; padding: 0 2px; }
del { background: var(--removed); border-radius: 3px; padding: 0 2px; }

/* ---------- blogs ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; margin-bottom: 8px; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); }
.stat-num { font-size: 34px; font-weight: 700; line-height: 1.15; letter-spacing: -.02em; }
.stat-topics { font-size: 13px; color: var(--muted); margin-top: 4px; }
.table-wrap { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { font-size: 13px; color: var(--muted); font-weight: 600; white-space: nowrap; user-select: none; }
th.sortable { cursor: pointer; }
th.sortable:hover { color: var(--text); }
tr:last-child td { border-bottom: none; }
td.date { white-space: nowrap; color: var(--muted); font-size: 14px; }
.more { display: block; margin: 12px auto 0; }

/* ---------- competitor ---------- */
.comp-head { display: flex; gap: 14px; align-items: center; margin-bottom: 20px; }
.comp-head .logo { width: 44px; height: 44px; font-size: 18px; border-radius: 10px; }
.comp-links { display: flex; gap: 16px; flex-wrap: wrap; font-size: 14px; }
.check-list { display: flex; flex-direction: column; gap: 6px; }
.check-row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 14px; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; }
.texts li { margin-bottom: 4px; }

@media (max-width: 760px) {
  .compare { grid-template-columns: 1fr; }
  .pane-scroll { height: 60vh; }
  .topbar-inner { gap: 12px; }
  h1 { font-size: 28px; }
  .brand { font-size: 19px; }
  .brand-tag { display: none; }
  th:nth-child(3), td:nth-child(3) { display: none; }
}

/* ---------- feed overview ---------- */
.overview { margin-bottom: 8px; }
a.stat { color: var(--text); display: block; transition: border-color .15s; }
a.stat:hover { text-decoration: none; border-color: var(--accent); }
a.stat .small { margin-top: 2px; }

/* ---------- password screen ---------- */
.lock { max-width: 420px; margin: 12vh auto 0; text-align: center; padding: 36px 28px; }
.lock-logo { height: 44px; margin-bottom: 16px; }
.lock h1 { font-size: 30px; }
.lock form { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
.lock input {
  font: inherit; color: var(--text); background: var(--surface-2); border: 1px solid transparent;
  border-radius: 12px; padding: 12px 14px; min-height: 46px;
}
.lock input:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
.lock-error { color: var(--removed-text); min-height: 1.5em; margin: 10px 0 0; font-size: 14px; }

/* ---------- NodeMaven coverage ---------- */
.badge.cov { border-color: transparent; }
a.badge.cov:hover { text-decoration: none; opacity: .85; }
.badge.cov.covered { background: var(--added); color: var(--added-text); }
.badge.cov.partial { background: #fff4d6; color: #7a5a00; }
.badge.cov.gap { background: var(--removed); color: var(--removed-text); }
@media (prefers-color-scheme: dark) { .badge.cov.partial { background: #3a2f10; color: #f3d98a; } }
