/* ============================================
   newsgroupreviews.co — site.css
   Option A: "Terminal" design
   ============================================ */

/* 1. Reset & base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  background-color: #0d1117;
  color: #c9d1d9;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: #58a6ff;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img, svg {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  padding-left: 1.5em;
}

table {
  border-collapse: collapse;
  width: 100%;
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: 'JetBrains Mono', monospace;
  color: #c9d1d9;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
}

h1 { font-size: 2rem; line-height: 1.2; }
h2 { font-size: 1.5rem; line-height: 1.3; margin-top: 48px; }
h3 { font-size: 1.1875rem; line-height: 1.4; margin-top: 32px; }

p {
  margin-bottom: 16px;
}

code, .mono {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.875em;
}

.text-secondary {
  color: #8b949e;
}

.text-small {
  font-size: 0.875rem;
  line-height: 1.5;
}

.text-micro {
  font-size: 0.75rem;
  line-height: 1.4;
  color: #8b949e;
}

strong {
  font-weight: 600;
}

/* 3. Layout primitives */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.content-col {
  max-width: 680px;
  margin: 0 auto;
}

.content-wide {
  max-width: 1100px;
}

.page-body {
  flex: 1;
  padding: 48px 0;
}

.flex {
  display: flex;
}

.flex-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.gap-8 { gap: 8px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.gap-32 { gap: 32px; }

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.grid-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
}

.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }

/* 4. Header & nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: #161b22;
  border-bottom: 1px solid #30363d;
  padding: 12px 0;
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-logo {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.125rem;
  font-weight: 700;
  color: #c9d1d9;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-logo:hover {
  text-decoration: none;
}

.site-logo .cursor {
  color: #8b949e;
}

.site-logo .tld {
  color: #f0883e;
}

.nav-links {
  display: flex;
  gap: 24px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-links a {
  color: #8b949e;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.15s;
}

.nav-links a:hover,
.nav-links a.active {
  color: #c9d1d9;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #c9d1d9;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 4px;
}

/* 5. Footer */
.site-footer {
  background-color: #161b22;
  border-top: 1px solid #30363d;
  padding: 48px 0 24px;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 32px;
}

.footer-brand .site-logo {
  margin-bottom: 12px;
}

.footer-tagline {
  color: #8b949e;
  font-size: 0.875rem;
  margin-bottom: 8px;
}

.footer-col h4 {
  font-size: 0.875rem;
  margin-bottom: 12px;
  color: #c9d1d9;
}

.footer-col ul {
  list-style: none;
  padding: 0;
}

.footer-col li {
  margin-bottom: 8px;
}

.footer-col a {
  color: #8b949e;
  font-size: 0.875rem;
}

.footer-col a:hover {
  color: #58a6ff;
}

.footer-bottom {
  border-top: 1px solid #30363d;
  padding-top: 16px;
  text-align: center;
}

.footer-disclaimer {
  font-size: 0.75rem;
  color: #8b949e;
  line-height: 1.4;
  max-width: 680px;
  margin: 0 auto;
}

/* 6. Verdict card */
.verdict-card {
  background-color: #161b22;
  border: 1px solid #30363d;
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 32px;
}

.verdict-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}

.verdict-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
}

.verdict-score {
  font-family: 'JetBrains Mono', monospace;
  font-size: 2.5rem;
  font-weight: 700;
  color: #f0883e;
  line-height: 1;
}

.verdict-score .out-of {
  font-size: 1rem;
  color: #8b949e;
}

.verdict-line {
  font-size: 1.0625rem;
  color: #c9d1d9;
  margin-bottom: 16px;
}

.verdict-pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 16px;
}

.verdict-pros h4,
.verdict-cons h4 {
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.verdict-pros h4 {
  color: #3fb950;
}

.verdict-cons h4 {
  color: #f85149;
}

.verdict-pros ul,
.verdict-cons ul {
  list-style: none;
  padding: 0;
  font-size: 0.875rem;
}

.verdict-pros li::before {
  content: "+ ";
  color: #3fb950;
  font-weight: 700;
}

.verdict-cons li::before {
  content: "- ";
  color: #f85149;
  font-weight: 700;
}

.verdict-pros li,
.verdict-cons li {
  margin-bottom: 4px;
  line-height: 1.4;
}

.verdict-actions {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  transition: background-color 0.15s, color 0.15s;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background-color: #58a6ff;
  color: #0d1117;
}

.btn-primary:hover {
  background-color: #79b8ff;
  text-decoration: none;
}

.btn-secondary {
  background-color: #21262d;
  color: #c9d1d9;
  border: 1px solid #30363d;
}

.btn-secondary:hover {
  background-color: #30363d;
  text-decoration: none;
}

/* 7. Comparison tables */
.table-wrap {
  border: 1px solid #30363d;
  border-radius: 8px;
  overflow-x: auto;
  margin: 24px 0;
}

.table-wrap table {
  min-width: 600px;
}

.table-wrap thead {
  background-color: #161b22;
  position: sticky;
  top: 0;
}

.table-wrap th {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #8b949e;
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid #30363d;
  white-space: nowrap;
}

.table-wrap td {
  padding: 12px 16px;
  font-size: 0.875rem;
  border-bottom: 1px solid #21262d;
  vertical-align: top;
}

.table-wrap tbody tr:hover {
  background-color: #161b22;
}

.table-wrap tbody tr:last-child td {
  border-bottom: none;
}

td.mono-cell {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8125rem;
}

.rank-num {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  color: #f0883e;
}

.table-wrap .highlight-row {
  background-color: rgba(88, 166, 255, 0.05);
}

/* 8. Callouts */
.callout {
  background-color: #161b22;
  border-left: 4px solid #f0883e;
  padding: 16px 24px;
  margin: 24px 0;
  border-radius: 0 6px 6px 0;
}

.callout-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #f0883e;
  margin-bottom: 8px;
}

.callout p {
  margin-bottom: 0;
  font-size: 0.9375rem;
}

.callout-info {
  border-left-color: #58a6ff;
}

.callout-info .callout-label {
  color: #58a6ff;
}

.callout-warning {
  border-left-color: #d29922;
}

.callout-warning .callout-label {
  color: #d29922;
}

/* Table cell yes/no indicators */
.cell-yes {
  color: #3fb950;
  font-weight: 600;
}

.cell-no {
  color: #d29922;
  font-weight: 600;
}

/* 9. Hard plug callout */
.hard-plug {
  background-color: #58a6ff;
  color: #0d1117;
  padding: 16px 24px;
  border-radius: 6px;
  margin-top: 16px;
  display: block;
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  transition: background-color 0.15s;
}

.hard-plug:hover {
  background-color: #79b8ff;
  text-decoration: none;
  color: #0d1117;
}

.hard-plug .arrow {
  margin-left: 8px;
}

/* 10. Article body styles */
.article-header {
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 1px solid #30363d;
}

.article-header h1 {
  margin-bottom: 8px;
}

.article-meta {
  font-size: 0.8125rem;
  color: #8b949e;
}

.article-body h2 {
  padding-bottom: 8px;
  border-bottom: 1px solid #21262d;
}

.article-body ul,
.article-body ol {
  margin-bottom: 16px;
}

.article-body li {
  margin-bottom: 6px;
}

.article-body blockquote {
  border-left: 3px solid #30363d;
  padding-left: 16px;
  color: #8b949e;
  margin: 16px 0;
  font-style: italic;
}

/* Table of contents */
.toc {
  background-color: #161b22;
  border: 1px solid #30363d;
  border-radius: 8px;
  padding: 16px 24px;
  margin: 24px 0;
}

.toc h3 {
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #8b949e;
  margin-top: 0;
  margin-bottom: 12px;
}

.toc ol {
  padding-left: 1.25em;
  margin-bottom: 0;
}

.toc li {
  margin-bottom: 4px;
  font-size: 0.875rem;
}

.toc a {
  color: #58a6ff;
}

/* Visit button styling in verdict */
.visit-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* 11. Listicle styles */
.listicle-entry {
  background-color: #161b22;
  border: 1px solid #30363d;
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 24px;
}

.listicle-entry-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.listicle-rank {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.5rem;
  font-weight: 700;
  color: #f0883e;
  margin-right: 12px;
}

.listicle-entry h3 {
  margin-top: 0;
  margin-bottom: 4px;
}

.listicle-entry .summary {
  color: #8b949e;
  font-size: 0.9375rem;
  margin-bottom: 12px;
}

.top-pick {
  border-color: #f0883e;
  border-width: 2px;
}

.top-pick::before {
  content: "TOP PICK";
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #f0883e;
  margin-bottom: 12px;
}

/* 12. Methodology & investigative page styles */
.methodology-section {
  margin-bottom: 48px;
}

.evidence-list {
  background-color: #161b22;
  border: 1px solid #30363d;
  border-radius: 8px;
  padding: 16px 24px;
  margin: 16px 0;
}

.evidence-list li {
  margin-bottom: 8px;
  font-size: 0.9375rem;
}

.timeline-entry {
  padding-left: 24px;
  border-left: 2px solid #30363d;
  margin-bottom: 24px;
  position: relative;
}

.timeline-entry::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 6px;
  width: 8px;
  height: 8px;
  background-color: #f0883e;
  border-radius: 50%;
}

.timeline-date {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: #8b949e;
  margin-bottom: 4px;
}

/* Hero section for homepage */
.hero {
  text-align: center;
  padding: 64px 0 48px;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.hero .tagline {
  font-size: 1.125rem;
  color: #8b949e;
  max-width: 600px;
  margin: 0 auto 32px;
}

/* Feature cards for homepage */
.feature-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 48px 0;
}

.feature-card {
  background-color: #161b22;
  border: 1px solid #30363d;
  border-radius: 8px;
  padding: 24px;
  text-align: center;
}

.feature-card h3 {
  margin-top: 12px;
  font-size: 1rem;
}

.feature-card p {
  font-size: 0.875rem;
  color: #8b949e;
  margin-bottom: 0;
}

/* Review grid for homepage */
.review-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 24px 0;
}

.review-card {
  background-color: #161b22;
  border: 1px solid #30363d;
  border-radius: 8px;
  padding: 20px;
  transition: border-color 0.15s;
}

.review-card:hover {
  border-color: #58a6ff;
}

.review-card h4 {
  font-size: 0.9375rem;
  margin-bottom: 6px;
}

.review-card .score {
  font-family: 'JetBrains Mono', monospace;
  color: #f0883e;
  font-weight: 700;
  font-size: 0.875rem;
}

.review-card p {
  font-size: 0.8125rem;
  color: #8b949e;
  margin-bottom: 0;
  margin-top: 8px;
}

/* Quick picks for homepage */
.quick-picks {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 16px 0;
}

.quick-pick-link {
  display: inline-block;
  background-color: #21262d;
  border: 1px solid #30363d;
  border-radius: 6px;
  padding: 8px 16px;
  font-size: 0.875rem;
  color: #c9d1d9;
  transition: border-color 0.15s;
}

.quick-pick-link:hover {
  border-color: #58a6ff;
  text-decoration: none;
}

/* Head-to-head styles */
.vs-header {
  text-align: center;
  margin-bottom: 32px;
}

.vs-header h1 {
  font-size: 2rem;
}

.vs-verdict {
  text-align: center;
  padding: 24px;
  background-color: #161b22;
  border: 2px solid #f0883e;
  border-radius: 8px;
  margin-bottom: 32px;
}

.vs-verdict .winner {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.25rem;
  font-weight: 700;
  color: #f0883e;
}

.round-winner {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  font-weight: 700;
  color: #3fb950;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Breadcrumbs */
.breadcrumbs {
  font-size: 0.8125rem;
  color: #8b949e;
  margin-bottom: 16px;
}

.breadcrumbs a {
  color: #8b949e;
}

.breadcrumbs a:hover {
  color: #58a6ff;
}

.breadcrumbs .sep {
  margin: 0 6px;
}

/* Best providers page featured cards */
.featured-provider {
  background-color: #161b22;
  border: 2px solid #30363d;
  border-radius: 8px;
  padding: 32px;
  margin-bottom: 32px;
}

.featured-provider.top-featured {
  border-color: #f0883e;
}

.featured-provider h2 {
  margin-top: 0;
  border-bottom: none;
  padding-bottom: 0;
}

.featured-provider .reasons {
  list-style: none;
  padding: 0;
  margin: 16px 0;
}

.featured-provider .reasons li {
  padding-left: 20px;
  position: relative;
  margin-bottom: 8px;
}

.featured-provider .reasons li::before {
  content: ">";
  position: absolute;
  left: 0;
  color: #f0883e;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
}

/* Contact form */
.contact-info {
  background-color: #161b22;
  border: 1px solid #30363d;
  border-radius: 8px;
  padding: 24px;
  margin: 24px 0;
}

/* 13. Mobile responsive */
@media (max-width: 768px) {
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.25rem; margin-top: 32px; }

  .hero h1 { font-size: 1.75rem; }
  .hero .tagline { font-size: 1rem; }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #161b22;
    border-bottom: 1px solid #30363d;
    flex-direction: column;
    padding: 16px 24px;
    gap: 12px;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }

  .verdict-pros-cons {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .verdict-header {
    flex-direction: column;
    gap: 8px;
  }

  .verdict-score {
    font-size: 2rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .feature-cards,
  .review-grid {
    grid-template-columns: 1fr;
  }

  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .table-wrap {
    margin-left: -24px;
    margin-right: -24px;
    border-radius: 0;
    border-left: none;
    border-right: none;
  }

  .listicle-entry-header {
    flex-direction: column;
  }

  .verdict-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  h1 { font-size: 1.375rem; }

  .verdict-card {
    padding: 16px;
  }

  .listicle-entry {
    padding: 16px;
  }
}
