/* UI-5: Community Board (Slickdeals-inspired)
   Palette: white bg, primary blue #0a3c7c, orange #ff6900, text #1a1a1a, border #e5e7eb
   Type: Arial headings, Helvetica body (system fonts)
   Layout: compact list-style, left main list + right Popular Stores sidebar */

:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-muted: #f8fafc;
  --text: #1a1a1a;
  --text-muted: #6b7280;
  --border: #e5e7eb;
  --blue: #0a3c7c;
  --blue-dark: #082e60;
  --blue-soft: #eaf1fb;
  --orange: #ff6900;
  --green: #16a34a;
  --font-head: Arial, "Helvetica Neue", Helvetica, sans-serif;
  --font-body: Helvetica, Arial, sans-serif;
  --maxw: 1180px;
  --maxw-narrow: 760px;
  --radius: 6px;
}

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

h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.3; color: var(--text); }

/* Navigation: blue bar */
.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 12px 24px;
  max-width: var(--maxw);
  margin: 0 auto;
  background: var(--blue);
}
.nav-brand {
  font-family: var(--font-head);
  font-size: 21px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
}
.nav-links { display: flex; flex-wrap: wrap; gap: 16px; }
.nav-links a {
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  opacity: 0.9;
}
.nav-links a:hover { opacity: 1; text-decoration: none; }
.nav-links a.active { border-bottom: 2px solid var(--orange); opacity: 1; }

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

/* Hero / page head */
.hero {
  background: var(--blue);
  color: #fff;
  padding: 32px 24px;
}
.hero h1 { color: #fff; font-size: 28px; margin: 0 0 6px; }
.hero .lead { font-size: 15px; color: #fff; opacity: 0.9; margin: 0; max-width: 760px; }

/* Two-column layout: main list + sidebar */
.board-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 24px;
  align-items: start;
}
.board-main { min-width: 0; }
.board-side { position: sticky; top: 12px; }

/* Section heading */
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 28px 0 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--blue);
}
.section-head h2 { font-size: 20px; margin: 0; }
.section-head a { font-size: 12px; font-weight: 700; }

/* Deal list (horizontal rows, high density) */
.deal-list {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.deal-row {
  display: grid;
  grid-template-columns: 64px 1fr auto auto;
  gap: 14px;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}
.deal-row:last-child { border-bottom: none; }
.deal-row:hover { background: var(--surface-muted); }
.deal-row .deal-thumb {
  width: 64px;
  height: 64px;
  object-fit: contain;
  background: var(--surface-muted);
  border-radius: 4px;
}
.deal-row .deal-thumb-placeholder {
  width: 64px;
  height: 64px;
  background: var(--surface-muted);
  border-radius: 4px;
}
.deal-row .deal-info { min-width: 0; }
.deal-row .deal-title {
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 700;
  color: var(--blue);
  margin: 0 0 3px;
}
.deal-row .deal-title a { color: var(--blue); }
.deal-row .deal-line {
  font-size: 12px;
  color: var(--text-muted);
  margin: 0;
}
.deal-row .deal-line .sep { margin: 0 6px; color: var(--border); }
.deal-row .deal-badges { margin-top: 4px; display: flex; gap: 6px; flex-wrap: wrap; }

/* Status pills */
.pill {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  padding: 2px 8px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.pill.frontpage { background: var(--blue); }
.pill.popular { background: var(--orange); }
.pill.top { background: var(--green); }

/* Deal score */
.deal-score {
  text-align: center;
  min-width: 56px;
}
.deal-score .score-num {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
}
.deal-score .score-icon { font-size: 14px; }
.deal-score .score-label { font-size: 10px; color: var(--text-muted); text-transform: uppercase; }

.deal-row .deal-cta {
  background: var(--orange);
  color: #fff !important;
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 4px;
  text-transform: uppercase;
  white-space: nowrap;
}
.deal-row .deal-cta:hover { background: #e55f00; text-decoration: none; }

/* Sidebar: Popular Stores */
.popular-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 16px;
}
.popular-card h3 {
  font-size: 14px;
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
  color: var(--blue);
}
.popular-card ul { list-style: none; padding: 0; margin: 0; }
.popular-card li { padding: 6px 0; font-size: 13px; }
.popular-card li a { color: var(--text); font-weight: 600; }
.popular-card li a:hover { color: var(--blue); }
.popular-card .store-count { font-size: 11px; color: var(--text-muted); }

.side-note {
  background: var(--blue-soft);
  border: 1px solid var(--blue);
  border-radius: var(--radius);
  padding: 14px;
  font-size: 12px;
  color: var(--text);
}
.side-note strong { color: var(--blue); }

/* Article page */
.article-page { padding: 32px 0 56px; }
.article-header { margin-bottom: 20px; }
.article-header .category-tag {
  display: inline-block;
  background: var(--blue);
  color: #fff;
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
}
.article-header h1 { font-size: 28px; margin: 0 0 8px; }
.article-header .article-meta { font-size: 13px; color: var(--text-muted); }
.article-hero-img { width: 100%; margin: 20px 0; border-radius: var(--radius); }
.article-disclosure {
  background: var(--blue-soft);
  border-left: 4px solid var(--blue);
  padding: 12px 16px;
  font-size: 13px;
  margin: 20px 0;
  color: var(--text);
  border-radius: 4px;
}
.article-content { font-size: 15px; line-height: 1.7; }
.article-content h2 { font-size: 22px; margin: 28px 0 10px; color: var(--blue); }
.article-content h3 { font-size: 18px; margin: 22px 0 8px; }
.article-content p { margin: 0 0 14px; }
.article-content ul, .article-content ol { margin: 0 0 14px; padding-left: 22px; }
.article-content li { margin-bottom: 6px; }
.article-content blockquote {
  border-left: 4px solid var(--orange);
  margin: 18px 0;
  padding: 4px 0 4px 16px;
  font-style: italic;
  color: var(--text-muted);
}
.article-content table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 14px; }
.article-content th, .article-content td { border-bottom: 1px solid var(--border); padding: 8px; text-align: left; }
.article-content th { font-family: var(--font-head); font-weight: 700; color: var(--text-muted); text-transform: uppercase; font-size: 11px; }
.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 18px 0; }
.pros-cons h3 { font-size: 14px; }

/* CTA */
.cta-button {
  display: inline-block;
  padding: 10px 20px;
  background: var(--orange);
  color: #fff !important;
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 700;
  border-radius: 4px;
  text-transform: uppercase;
}
.cta-button:hover { background: #e55f00; text-decoration: none; }

/* Category page */
.category-page { padding: 32px 0 56px; }
.category-page h1 { font-size: 26px; margin: 0 0 6px; }
.category-page .lead { color: var(--text-muted); margin: 0 0 20px; font-size: 14px; }

/* Legal pages */
.legal-page { padding: 32px 0 56px; }
.legal-page h1 { font-size: 26px; margin: 0 0 12px; color: var(--blue); }
.legal-page h2 { font-size: 19px; margin: 26px 0 8px; }
.legal-page h3 { font-size: 16px; margin: 20px 0 6px; }
.legal-page p, .legal-page ul, .legal-page ol { margin: 0 0 12px; }
.legal-page ul, .legal-page ol { padding-left: 22px; }
.legal-page li { margin-bottom: 6px; }
.legal-page .lead { font-size: 15px; color: var(--text-muted); }
.legal-page .contact-email { font-size: 16px; font-family: var(--font-head); color: var(--blue); }
.legal-page .disclosure-callout {
  background: var(--blue-soft);
  padding: 14px 18px;
  border-radius: 4px;
  border-left: 4px solid var(--blue);
  font-family: var(--font-head);
  font-size: 15px;
  margin: 18px 0;
}
.legal-revision { color: var(--text-muted); font-size: 12px; margin-top: 28px; }

/* Footer */
.site-footer { background: var(--blue-dark); color: #fff; margin-top: 40px; padding: 36px 24px 20px; }
.site-footer a { color: #fff; }
.site-footer .footer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; max-width: var(--maxw); margin: 0 auto 20px; }
.site-footer h4 { font-family: var(--font-head); font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em; color: #fff; margin: 0 0 10px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 6px; }
.site-footer .footer-grid a { font-size: 13px; opacity: 0.9; }
.site-footer .affiliate-disclosure { font-size: 11px; color: #c7d4e8; line-height: 1.5; margin: 0; }
.site-footer .footer-bottom { max-width: var(--maxw); margin: 0 auto; padding-top: 16px; border-top: 1px solid #1d4f8a; font-size: 12px; color: #c7d4e8; text-align: center; }

.affiliate-disclosure { font-size: 12px; color: var(--text-muted); line-height: 1.5; }

/* Responsive */
@media (max-width: 900px) {
  .board-layout { grid-template-columns: 1fr; }
  .board-side { position: static; }
}
@media (max-width: 640px) {
  .deal-row { grid-template-columns: 56px 1fr; grid-template-rows: auto auto; }
  .deal-row .deal-score { grid-column: 2; text-align: left; }
  .deal-row .deal-cta { grid-column: 1 / -1; text-align: center; }
  .deal-row .deal-thumb, .deal-row .deal-thumb-placeholder { width: 56px; height: 56px; }
  .hero h1 { font-size: 22px; }
  .article-header h1 { font-size: 22px; }
  .pros-cons { grid-template-columns: 1fr; }
  .site-footer .footer-grid { grid-template-columns: 1fr; }
  .nav-links { gap: 10px; }
  .nav-links a { font-size: 12px; }
}
