/* CiteHub.ai — Shared Stylesheet */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0d0f14;
  --surface: #161921;
  --border: #262b38;
  --accent: #4f8ef7;
  --accent2: #7c5af5;
  --text: #e2e8f0;
  --muted: #8892a4;
  --max: 900px;
}

html { font-size: 16px; scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* NAV */
nav {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}
nav .brand { font-weight: 700; font-size: 1.1rem; color: var(--text); letter-spacing: -0.02em; }
nav .brand span { color: var(--accent); }
nav .nav-links { display: flex; gap: 1.25rem; flex-wrap: wrap; }
nav .nav-links a { color: var(--muted); font-size: 0.9rem; transition: color 0.2s; }
nav .nav-links a:hover { color: var(--text); text-decoration: none; }

/* MAIN */
main { flex: 1; max-width: var(--max); margin: 0 auto; padding: 2.5rem 1.5rem; width: 100%; }

/* HERO */
.hero { margin-bottom: 3rem; padding: 3rem 0 2rem; }
.hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--text) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero .lead { font-size: 1.15rem; color: var(--muted); max-width: 650px; }

/* SECTIONS */
h2 { font-size: 1.4rem; font-weight: 700; margin: 2.5rem 0 0.75rem; color: var(--text); letter-spacing: -0.02em; }
h3 { font-size: 1.1rem; font-weight: 600; margin: 1.75rem 0 0.5rem; color: var(--text); }
h4 { font-size: 0.95rem; font-weight: 600; margin: 1.25rem 0 0.4rem; color: var(--accent); text-transform: uppercase; letter-spacing: 0.05em; }
p { margin-bottom: 1rem; color: var(--text); }

/* CARD GRID */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1rem; margin: 1.5rem 0; }
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem;
  transition: border-color 0.2s;
}
.card:hover { border-color: var(--accent); }
.card h3 { margin: 0 0 0.5rem; font-size: 1rem; }
.card p { font-size: 0.88rem; color: var(--muted); margin: 0; }
.card a.card-link { display: block; margin-top: 0.75rem; font-size: 0.85rem; font-weight: 600; }

/* TABLE */
table { width: 100%; border-collapse: collapse; margin: 1.25rem 0; font-size: 0.9rem; }
th { background: var(--surface); text-align: left; padding: 0.6rem 0.85rem; border: 1px solid var(--border); color: var(--muted); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; }
td { padding: 0.6rem 0.85rem; border: 1px solid var(--border); vertical-align: top; }
tr:nth-child(even) td { background: rgba(255,255,255,0.02); }

/* CALLOUT */
.callout {
  background: linear-gradient(135deg, rgba(79,142,247,0.1), rgba(124,90,245,0.1));
  border: 1px solid rgba(79,142,247,0.3);
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
}
.callout p { margin: 0; }

/* LIST */
ul, ol { padding-left: 1.5rem; margin-bottom: 1rem; }
li { margin-bottom: 0.4rem; color: var(--text); }

/* TOOL ENTRY */
.tool-entry {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin-bottom: 0.75rem;
  background: var(--surface);
}
.tool-entry h3 { margin: 0 0 0.25rem; font-size: 1rem; }
.tool-entry .tool-meta { font-size: 0.78rem; color: var(--accent2); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.4rem; }
.tool-entry p { font-size: 0.88rem; color: var(--muted); margin: 0; }

/* FOOTER */
footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
}
footer a { color: var(--accent); }

/* BREADCRUMB */
.breadcrumb { font-size: 0.82rem; color: var(--muted); margin-bottom: 1.5rem; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--text); }

@media (max-width: 600px) {
  nav { gap: 0.75rem; }
  .card-grid { grid-template-columns: 1fr; }
  table { font-size: 0.8rem; }
}
