/* UI-2: Red-Black Tech Magazine (Tom's Guide-inspired)
   Palette: black bg #0a0a0a, white text #f5f5f5, red accent #e60000,
            secondary gray #a0a0a0, dark card surface #1a1a1a
   Type: Roboto Condensed headings, Inter body (Google Fonts @import)
   Layout: red announcement bar + centered container (max 1100px),
           article page with right sidebar (rating card + spec box) */

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

:root {
  --bg: #0a0a0a;
  --surface: #1a1a1a;
  --surface-2: #141414;
  --text: #f5f5f5;
  --text-muted: #a0a0a0;
  --border: #2a2a2a;
  --accent: #e60000;
  --accent-soft: rgba(230, 0, 0, 0.12);
  --green: #22c55e;
  --font-head: 'Roboto Condensed', Arial, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --maxw: 1100px;
  --radius: 2px;
}

* { 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.6;
  -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.2;
  color: var(--text);
  letter-spacing: 0.01em;
}

/* Announcement bar */
.announcement {
  background: var(--accent);
  color: #fff;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  text-align: center;
  padding: 7px 16px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

/* Navigation */
.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 16px 24px;
  max-width: var(--maxw);
  margin: 0 auto;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}
.nav-brand {
  font-family: var(--font-head);
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.nav-brand:hover { color: var(--accent); text-decoration: none; }
.nav-links { display: flex; flex-wrap: wrap; gap: 18px; }
.nav-links a {
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.nav-links a:hover { color: var(--text); text-decoration: none; }
.nav-links a.active { color: var(--accent); border-bottom: 2px solid var(--accent); }

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

/* Hero */
.hero { padding: 44px 0 32px; border-bottom: 1px solid var(--border); }
.hero h1 {
  font-size: 44px;
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}
.hero h1::after {
  content: "";
  display: block;
  width: 64px;
  height: 4px;
  background: var(--accent);
  margin-top: 12px;
}
.hero .lead { font-size: 18px; color: var(--text-muted); margin: 12px 0 0; }

/* Section heading */
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 44px 0 20px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--accent);
}
.section-head h2 { font-size: 26px; margin: 0; text-transform: uppercase; }
.section-head a { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }

/* Card list */
.card-list { display: flex; flex-direction: column; gap: 14px; }
.card {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 18px;
  padding: 16px 18px;
  background: var(--surface);
  border-left: 4px solid var(--accent);
  align-items: start;
  transition: background 0.15s ease;
}
.card:hover { background: var(--surface-2); }
.card-thumb {
  width: 140px;
  height: 140px;
  object-fit: contain;
  background: #000;
  border-radius: var(--radius);
}
.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: 4px;
}
.card-body h3 { font-size: 19px; margin: 0 0 6px; line-height: 1.25; }
.card-body h3 a { color: var(--text); }
.card-body h3 a:hover { color: var(--accent); text-decoration: none; }
.card-body p { margin: 0 0 10px; color: var(--text-muted); font-size: 14px; }
.card-body .card-actions { display: flex; align-items: center; gap: 14px; }
.card-actions .read-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.card-actions .read-link:hover { color: var(--accent); text-decoration: none; }

/* CTA */
.cta-button {
  display: inline-block;
  padding: 10px 22px;
  background: var(--accent);
  color: #fff !important;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  border-radius: var(--radius);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
}
.cta-button:hover { background: #ff1a1a; 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: 32px 0 56px; }
.article-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 36px;
  align-items: start;
}
.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: 8px;
}
.article-header h1 { font-size: 34px; margin: 0 0 10px; text-transform: none; line-height: 1.2; }
.article-header .article-meta { font-size: 13px; color: var(--text-muted); margin: 0; }
.article-hero-img { width: 100%; margin: 20px 0; border: 1px solid var(--border); border-radius: var(--radius); }

.article-disclosure {
  background: var(--surface);
  border-left: 3px solid var(--accent);
  padding: 12px 16px;
  font-size: 13px;
  margin: 20px 0;
  color: var(--text-muted);
}
.article-disclosure strong { color: var(--text); }

.article-content { font-size: 17px; line-height: 1.75; color: var(--text); }
.article-content h2 {
  font-size: 24px;
  margin: 32px 0 12px;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border);
  padding-bottom: 6px;
}
.article-content h3 { font-size: 19px; margin: 26px 0 10px; }
.article-content p { margin: 0 0 16px; }
.article-content .lead { font-size: 19px; color: var(--text); }
.article-content ul, .article-content ol { margin: 0 0 16px; padding-left: 22px; }
.article-content li { margin-bottom: 6px; }
.article-content blockquote {
  border-left: 3px solid var(--accent);
  margin: 20px 0;
  padding: 4px 0 4px 16px;
  font-style: italic;
  color: var(--text-muted);
}
.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 14px;
  display: block;
  overflow-x: auto;
}
.article-content th, .article-content td {
  border-bottom: 1px solid var(--border);
  padding: 9px 10px;
  text-align: left;
}
.article-content th {
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.05em;
}
.article-content .byline { font-style: italic; color: var(--text-muted); margin-top: 36px; }

/* Pros / cons */
.pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin: 28px 0;
}
.pros-cons .pros, .pros-cons .cons {
  background: var(--surface);
  padding: 16px 18px;
  border-top: 3px solid var(--accent);
}
.pros-cons .pros { border-top-color: var(--green); }
.pros-cons .cons { border-top-color: var(--accent); }
.pros-cons h3 { font-size: 16px; margin: 0 0 10px; text-transform: uppercase; }
.pros-cons ul { list-style: none; padding: 0; margin: 0; }
.pros-cons li { font-size: 14px; margin-bottom: 8px; padding-left: 22px; position: relative; color: var(--text); }
.pros-cons .pros li::before {
  content: "+";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--green);
  font-weight: 700;
  font-size: 16px;
}
.pros-cons .cons li::before {
  content: "\2212";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-weight: 700;
  font-size: 16px;
}

/* Scorecard */
.scorecard {
  background: var(--surface);
  padding: 18px 20px;
  margin: 28px 0;
  border-left: 4px solid var(--accent);
}
.scorecard h3 { font-size: 18px; margin: 0 0 12px; text-transform: uppercase; }
.scorecard table { width: 100%; border-collapse: collapse; font-size: 14px; }
.scorecard th {
  text-align: left;
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.05em;
  padding: 8px 10px;
  border-bottom: 2px solid var(--border);
}
.scorecard td { padding: 9px 10px; border-bottom: 1px solid var(--border); color: var(--text); vertical-align: middle; }
.scorecard td.rating-cell { white-space: nowrap; }
.scorecard tr:last-child td { border-bottom: none; }

/* Article bottom CTA */
.article-cta-bottom {
  margin: 36px 0 0;
  padding: 20px;
  background: var(--surface);
  border-left: 4px solid var(--accent);
}
.article-cta-bottom p { margin: 0 0 12px; font-weight: 600; }

/* Sidebar */
.article-sidebar {
  position: sticky;
  top: 16px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.rating-card, .spec-box {
  background: var(--surface);
  padding: 18px 20px;
  border-left: 4px solid var(--accent);
}
.sidebar-title {
  font-size: 15px;
  margin: 0 0 12px;
  text-transform: uppercase;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px;
}
.rating-num { font-family: var(--font-head); font-size: 44px; font-weight: 700; line-height: 1; color: var(--accent); }
.rating-stars { margin: 6px 0 4px; }
.rating-stars .stars { font-size: 20px; }
.review-count { font-size: 13px; color: var(--text-muted); margin-bottom: 14px; }
.sidebar-cta .cta-button { display: block; text-align: center; }
.spec-list { list-style: none; padding: 0; margin: 0; }
.spec-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.spec-list li:last-child { border-bottom: none; }
.spec-key { color: var(--text-muted); font-weight: 600; }
.spec-val { color: var(--text); text-align: right; }

/* Category page */
.category-page { padding: 32px 0 56px; }
.category-page h1 { font-size: 32px; margin: 0 0 6px; text-transform: uppercase; }
.category-page h1::after { content: ""; display: block; width: 56px; height: 4px; background: var(--accent); margin-top: 10px; }
.category-page .lead { color: var(--text-muted); margin: 12px 0 24px; }
.empty-note { color: var(--text-muted); }

/* Legal pages */
.legal-page { padding: 32px 0 56px; }
.legal-page h1 { font-size: 32px; margin: 0 0 14px; text-transform: uppercase; }
.legal-page h1::after { content: ""; display: block; width: 56px; height: 4px; background: var(--accent); margin-top: 10px; }
.legal-page h2 { font-size: 22px; margin: 30px 0 10px; text-transform: uppercase; border-bottom: 1px solid var(--border); padding-bottom: 6px; }
.legal-page h3 { font-size: 17px; margin: 20px 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: 3px solid var(--accent);
  padding: 14px 18px;
  font-family: var(--font-head);
  font-size: 16px;
  margin: 18px 0;
  color: var(--text);
}
.legal-revision { color: var(--text-muted); font-size: 13px; margin-top: 30px; }

/* Footer */
.site-footer {
  background: #000;
  border-top: 3px solid var(--accent);
  margin-top: 48px;
  padding: 36px 24px 22px;
}
.footer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; max-width: var(--maxw); margin: 0 auto 22px; }
.footer-grid h4 {
  font-family: var(--font-body);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  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);
  margin: 0 auto;
  padding-top: 18px;
  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: 880px) {
  .article-grid { grid-template-columns: 1fr; }
  .article-sidebar { position: static; flex-direction: row; flex-wrap: wrap; }
  .article-sidebar .rating-card, .article-sidebar .spec-box { flex: 1 1 260px; }
}
@media (max-width: 640px) {
  .card { grid-template-columns: 1fr; gap: 12px; }
  .card-thumb { width: 100%; height: 200px; }
  .hero h1 { font-size: 32px; }
  .article-header h1 { font-size: 26px; }
  .pros-cons { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .article-sidebar { flex-direction: column; }
}
