/* UI-3: Modern Review Portal (TechRadar-inspired)
   Palette: white bg #fff, text #1a1a1a, primary blue #0066ff, bright blue #3b82f6,
            light blue bg #eff6ff, border #e5e7eb
   Type: Poppins headings, Inter body (Google Fonts @import)
   Layout: top nav bar + large hero + single-column content (max 800px),
           cards with white bg + light blue hover + 8px radius + shadow +
           category color top bar */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Poppins:wght@500;600;700&display=swap');

:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-muted: #eff6ff;
  --text: #1a1a1a;
  --text-muted: #5b6470;
  --border: #e5e7eb;
  --accent: #0066ff;
  --accent-bright: #3b82f6;
  --accent-soft: #eff6ff;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-hover: 0 6px 18px rgba(0, 102, 255, 0.12), 0 2px 6px rgba(0, 0, 0, 0.06);
  --font-head: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --maxw: 800px;
  --maxw-wide: 1100px;
  --radius: 8px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text);
  letter-spacing: -0.01em;
}

/* Navigation */
.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 14px 24px;
  max-width: var(--maxw-wide);
  margin: 0 auto;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.02em;
}
.brand-text { line-height: 1; }
.nav-brand:hover { text-decoration: none; color: var(--accent-bright); }
.nav-links { display: flex; flex-wrap: wrap; gap: 18px; }
.nav-links a {
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
}
.nav-links a:hover { color: var(--accent); text-decoration: none; }
.nav-links a.active { color: var(--accent); font-weight: 600; }

/* Containers */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.container-wide { max-width: var(--maxw-wide); margin: 0 auto; padding: 0 24px; }

/* Hero */
.hero {
  background: linear-gradient(180deg, var(--accent-soft) 0%, #ffffff 100%);
  padding: 56px 0 40px;
  border-bottom: 1px solid var(--border);
}
.hero-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: #fff;
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.hero h1 { font-size: 42px; margin: 0 0 10px; letter-spacing: -0.02em; }
.hero .lead { font-size: 19px; color: var(--text-muted); margin: 0; max-width: 640px; }

/* Section heading */
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 48px 0 22px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--accent);
}
.section-head h2 { font-size: 26px; margin: 0; }
.section-head a { font-size: 14px; font-weight: 600; }

/* Card list */
.card-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
  border-color: var(--accent-bright);
  background: var(--accent-soft);
}
.card-top-bar { height: 4px; background: var(--accent); }
.card-thumb {
  width: 100%;
  height: 180px;
  object-fit: contain;
  background: #f9fafb;
  border-bottom: 1px solid var(--border);
}
.card-body { padding: 18px 18px 20px; display: flex; flex-direction: column; flex: 1; }
.card-body .card-cat {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}
.card-body h3 { font-size: 18px; margin: 0 0 8px; line-height: 1.3; }
.card-body h3 a { color: var(--text); }
.card-body h3 a:hover { color: var(--accent); text-decoration: none; }
.card-body p { margin: 0 0 14px; color: var(--text-muted); font-size: 14px; flex: 1; }
.card-body .card-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.card-actions .read-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
}
.card-actions .read-link:hover { text-decoration: underline; }

/* CTA */
.cta-button {
  display: inline-block;
  padding: 11px 24px;
  background: var(--accent);
  color: #fff !important;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius);
  letter-spacing: 0.01em;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 102, 255, 0.25);
  transition: background 0.15s ease;
}
.cta-button:hover { background: var(--accent-bright); text-decoration: none; }

/* Stars */
.stars { color: var(--accent); font-size: 16px; letter-spacing: 1px; white-space: nowrap; }
.star-half { opacity: 0.45; }

/* Article page */
.article-page { padding: 40px 0 56px; }
.article-header { margin-bottom: 24px; border-bottom: 1px solid var(--border); padding-bottom: 20px; }
.article-header .category-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}
.article-header h1 { font-size: 36px; margin: 0 0 12px; letter-spacing: -0.02em; }
.article-header .article-meta { font-size: 14px; color: var(--text-muted); }

.article-figure { margin: 24px 0; }
.article-hero-img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.article-figure figcaption {
  margin-top: 8px;
  font-size: 13px;
  color: var(--text-muted);
  font-style: italic;
}

.article-disclosure {
  background: var(--accent-soft);
  border-left: 4px solid var(--accent);
  padding: 14px 18px;
  font-size: 14px;
  margin: 22px 0;
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--text);
}
.article-disclosure strong { color: var(--accent); }

.article-content { font-size: 18px; line-height: 1.78; color: var(--text); }
.article-content h2 { font-size: 26px; margin: 36px 0 12px; }
.article-content h3 { font-size: 20px; margin: 28px 0 10px; }
.article-content p { margin: 0 0 18px; }
.article-content .lead { font-size: 20px; color: var(--text); font-weight: 500; }
.article-content ul, .article-content ol { margin: 0 0 18px; padding-left: 22px; }
.article-content li { margin-bottom: 8px; }
.article-content blockquote {
  border-left: 4px solid var(--accent);
  margin: 24px 0;
  padding: 6px 0 6px 18px;
  font-style: italic;
  color: var(--text-muted);
  background: var(--accent-soft);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.article-content .byline { font-style: italic; color: var(--text-muted); margin-top: 40px; }

/* Horizontally scrollable spec tables */
.article-content table {
  display: block;
  overflow-x: auto;
  white-space: nowrap;
  max-width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 15px;
  -webkit-overflow-scrolling: touch;
}
.article-content th, .article-content td {
  border-bottom: 1px solid var(--border);
  padding: 11px 14px;
  text-align: left;
}
.article-content th {
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.04em;
  background: var(--accent-soft);
}

/* Scorecard (blue summary box) */
.scorecard {
  background: var(--accent-soft);
  border: 1px solid #dbeafe;
  border-left: 6px solid var(--accent);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin: 32px 0;
}
.sc-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}
.sc-main { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.sc-number {
  font-family: var(--font-head);
  font-size: 56px;
  font-weight: 700;
  line-height: 1;
  color: var(--accent);
  letter-spacing: -0.03em;
}
.sc-out { font-size: 24px; color: var(--text-muted); font-weight: 500; }
.sc-stars .stars { font-size: 24px; }
.sc-reviews { font-size: 14px; color: var(--text-muted); margin: 12px 0 16px; }
.sc-cta .cta-button { display: inline-block; }

/* Article bottom CTA */
.article-cta-bottom {
  margin: 36px 0 0;
  padding: 24px;
  background: var(--accent-soft);
  border: 1px solid #dbeafe;
  border-radius: var(--radius);
  text-align: center;
}
.article-cta-bottom p { margin: 0 0 14px; font-weight: 600; color: var(--text); }

/* Category page */
.category-page { padding: 40px 0 56px; }
.category-page h1 { font-size: 34px; margin: 10px 0 8px; letter-spacing: -0.02em; }
.category-page .lead { color: var(--text-muted); margin: 0 0 28px; }
.empty-note { color: var(--text-muted); }

/* Legal pages */
.legal-page { padding: 40px 0 56px; }
.legal-page h1 { font-size: 34px; margin: 0 0 16px; letter-spacing: -0.02em; }
.legal-page h2 { font-size: 23px; margin: 32px 0 10px; }
.legal-page h3 { font-size: 18px; margin: 22px 0 8px; }
.legal-page p, .legal-page ul, .legal-page ol { margin: 0 0 14px; }
.legal-page ul, .legal-page ol { padding-left: 22px; }
.legal-page li { margin-bottom: 6px; }
.legal-page .lead { font-size: 18px; color: var(--text-muted); }
.legal-page .contact-email { font-size: 18px; font-family: var(--font-head); }
.legal-page .contact-email a { color: var(--accent); }
.legal-page a { color: var(--accent); }
.legal-page .disclosure-callout {
  background: var(--accent-soft);
  border-left: 4px solid var(--accent);
  padding: 16px 20px;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-family: var(--font-head);
  font-size: 17px;
  margin: 20px 0;
  color: var(--text);
}
.legal-revision { color: var(--text-muted); font-size: 13px; margin-top: 32px; }

/* Footer */
.site-footer {
  background: #f9fafb;
  border-top: 1px solid var(--border);
  margin-top: 56px;
  padding: 40px 24px 24px;
}
.footer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; max-width: var(--maxw-wide); margin: 0 auto 24px; }
.footer-grid h4 {
  font-family: var(--font-body);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin: 0 0 12px;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer-grid a { color: var(--text); font-size: 14px; }
.footer-grid a:hover { color: var(--accent); text-decoration: none; }
.footer-grid .affiliate-disclosure { font-size: 12px; color: var(--text-muted); line-height: 1.55; margin: 0; }
.footer-bottom {
  max-width: var(--maxw-wide);
  margin: 0 auto;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
}
.affiliate-disclosure { font-size: 12px; color: var(--text-muted); line-height: 1.55; }

/* Responsive */
@media (max-width: 640px) {
  .card-list { grid-template-columns: 1fr; }
  .hero h1 { font-size: 30px; }
  .article-header h1 { font-size: 28px; }
  .sc-number { font-size: 44px; }
  .footer-grid { grid-template-columns: 1fr; }
}
