/* ==============================================
   Scout N Deal — Main Stylesheet
   Mobile-first, system font stack, clean cards
   ============================================== */

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

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
               Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: #1e293b;
  background: #f8f9fa;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

a {
  color: #2563eb;
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover { color: #1d4ed8; }
a:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
  border-radius: 2px;
}

/* ---------- Skip Link ---------- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  background: #0f172a;
  color: #fff;
  padding: 8px 16px;
  z-index: 1000;
  border-radius: 0 0 4px 4px;
  font-size: 0.875rem;
  text-decoration: none;
}
.skip-link:focus {
  top: 0;
}

/* ---------- Container ---------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ---------- Header ---------- */
.site-header {
  background: #0f172a;
  color: #fff;
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 2px solid #2563eb;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.site-brand {
  display: flex;
  flex-direction: column;
}
.site-logo {
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
  text-decoration: none;
  letter-spacing: -0.5px;
  line-height: 1.2;
}
.site-logo span { color: #60a5fa; }
.site-logo:hover { color: #e2e8f0; }
.site-tagline {
  font-size: 0.75rem;
  color: #94a3b8;
  margin-top: 1px;
}

/* ---------- Navigation ---------- */
.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}
.site-nav a {
  color: #cbd5e1;
  font-size: 0.875rem;
  padding: 6px 12px;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.site-nav a:hover,
.site-nav a:focus-visible {
  background: rgba(255,255,255,0.08);
  color: #fff;
}
.site-nav a.active {
  color: #fff;
  background: rgba(37,99,235,0.3);
}

/* ---------- Language Switcher ---------- */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: transparent;
  border: 1px solid #475569;
  color: #e2e8f0;
  font-size: 0.8rem;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s, border-color 0.2s;
  white-space: nowrap;
}
.lang-switch:hover {
  background: rgba(255,255,255,0.08);
  border-color: #64748b;
}
.lang-switch:focus-visible {
  outline: 2px solid #60a5fa;
  outline-offset: 2px;
}

/* ---------- Main Content ---------- */
.site-main {
  flex: 1;
  padding: 32px 0 48px;
}

/* ---------- Hero Section ---------- */
.hero {
  text-align: center;
  padding: 24px 0 36px;
  margin-bottom: 24px;
  border-bottom: 1px solid #e2e8f0;
}
.hero h1 {
  font-size: 1.6rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 10px;
  line-height: 1.3;
}
.hero p {
  font-size: 1rem;
  color: #64748b;
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ---------- Section Headings ---------- */
.section-heading {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 20px;
  padding-bottom: 8px;
  border-bottom: 2px solid #e2e8f0;
}

/* ---------- Card Grid ---------- */
.post-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.post-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 20px;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
  display: flex;
  flex-direction: column;
}
.post-card:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.07);
  border-color: #cbd5e1;
}
.post-card:focus-within {
  box-shadow: 0 0 0 3px rgba(37,99,235,0.15);
  border-color: #2563eb;
}

.post-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 6px;
}
.post-card-title a {
  color: #0f172a;
  text-decoration: none;
}
.post-card-title a:hover { color: #2563eb; }

.post-card-meta {
  font-size: 0.8rem;
  color: #94a3b8;
  margin-bottom: 10px;
}

.post-card-excerpt {
  font-size: 0.9rem;
  color: #475569;
  line-height: 1.6;
  margin-bottom: 16px;
  flex: 1;
}

.post-card-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #2563eb;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 10px 18px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, transform 0.1s;
  align-self: flex-start;
  font-family: inherit;
}
.post-card-btn:hover {
  background: #1d4ed8;
  color: #fff;
}
.post-card-btn:active {
  transform: scale(0.97);
}
.post-card-btn:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

/* ---------- Full Post / Article ---------- */
.post-full {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 24px 20px;
  max-width: 800px;
  margin: 0 auto;
}
.post-full h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 8px;
  line-height: 1.3;
}
.post-full .meta {
  color: #94a3b8;
  font-size: 0.85rem;
  margin-bottom: 24px;
}
.post-full h2 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #1e293b;
  margin: 28px 0 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid #e2e8f0;
  scroll-margin-top: 80px; /* offset for sticky header + jump links */
}
.post-full h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: #334155;
  margin: 20px 0 8px;
  scroll-margin-top: 80px;
}
.post-full p {
  margin-bottom: 14px;
  line-height: 1.75;
  color: #334155;
}
.post-full ul,
.post-full ol {
  margin: 8px 0 16px 20px;
  color: #334155;
}
.post-full li {
  margin-bottom: 6px;
  line-height: 1.65;
}
.post-full em { color: #475569; }
.post-full strong { color: #1e293b; }

/* ---------- Review Image ---------- */
.review-img {
  width: 100%;
  max-width: 800px;
  border-radius: 8px;
  margin: 16px auto;
  border: 1px solid #e2e8f0;
}

/* ---------- Specs Card ---------- */
.specs-card {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 16px 20px;
  margin: 16px 0;
}
.specs-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 10px;
}
.specs-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.specs-card li {
  padding: 6px 0;
  border-bottom: 1px solid #e2e8f0;
  font-size: 0.9rem;
  color: #334155;
}
.specs-card li:last-child { border-bottom: none; }
.specs-card li strong {
  color: #1e293b;
  display: inline-block;
  min-width: 120px;
  font-weight: 600;
}

/* ---------- Pros/Cons Grid ---------- */
.proscons-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 16px 0;
}
.pros-box,
.cons-box {
  border-radius: 8px;
  padding: 16px;
  border: 1px solid #e2e8f0;
}
.pros-box {
  background: #f0fdf4;
  border-left: 4px solid #16a34a;
}
.cons-box {
  background: #fef2f2;
  border-left: 4px solid #dc2626;
}
.pros-box h3,
.cons-box h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0 0 8px;
}
.pros-box h3 { color: #15803d; }
.cons-box h3 { color: #b91c1c; }
.pros-box ul,
.cons-box ul {
  margin: 0 0 0 16px;
  padding: 0;
  font-size: 0.9rem;
}
.pros-box li,
.cons-box li {
  margin-bottom: 4px;
}

/* ---------- Verdict Box ---------- */
.verdict-box {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  padding: 16px 20px;
  margin: 20px 0;
  scroll-margin-top: 80px;
}
.verdict-box h3 {
  color: #1e40af;
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 8px;
}

/* ---------- Table of Contents ---------- */
.toc {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 16px 20px;
  margin: 20px 0;
}
.toc-heading {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 10px;
}
.toc-list {
  list-style: decimal;
  margin: 0 0 0 18px;
  padding: 0;
}
.toc-list li {
  margin-bottom: 4px;
  font-size: 0.9rem;
  line-height: 1.6;
}
.toc-list a {
  color: #2563eb;
  text-decoration: none;
}
.toc-list a:hover { text-decoration: underline; }

/* ---------- Who For / Not For Grid ---------- */
.who-for-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 16px 0;
}
.who-for-box,
.who-not-for-box {
  border-radius: 8px;
  padding: 16px;
  border: 1px solid #e2e8f0;
}
.who-for-box {
  background: #f0fdf4;
  border-left: 4px solid #16a34a;
}
.who-not-for-box {
  background: #fef2f2;
  border-left: 4px solid #dc2626;
}
.who-for-box h3 { color: #15803d; font-size: 0.95rem; font-weight: 700; margin: 0 0 8px; }
.who-not-for-box h3 { color: #b91c1c; font-size: 0.95rem; font-weight: 700; margin: 0 0 8px; }
.who-for-box p,
.who-not-for-box p { margin: 0; font-size: 0.9rem; }

/* ---------- Top Disclosure (above H1 — industry standard) ---------- */
.top-disclosure {
  background: #fffbeb;
  border: 1px solid #fcd34d;
  border-left: 4px solid #f59e0b;
  border-radius: 6px;
  padding: 10px 14px;
  margin-bottom: 20px;
  font-size: 0.8rem;
  color: #92400e;
  line-height: 1.55;
}

/* ---------- Affiliate Disclosure (bottom) ---------- */
.affiliate-disclosure {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 14px 16px;
  margin: 24px 0 0;
  font-size: 0.8rem;
  color: #94a3b8;
  line-height: 1.5;
  font-style: italic;
}


/* ---------- Buy Button ---------- */
.buy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #e87400;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 12px 24px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, transform 0.1s;
  font-family: inherit;
  margin: 8px 0;
}
.buy-btn:hover {
  background: #c96a00;
  color: #fff;
}
.buy-btn:active { transform: scale(0.97); }
.buy-btn:focus-visible {
  outline: 2px solid #e87400;
  outline-offset: 2px;
}

/* Inline buy button (mid-article, slightly smaller) */
.buy-btn-inline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #e87400;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, transform 0.1s;
  font-family: inherit;
  margin: 12px 0 8px;
}
.buy-btn-inline:hover {
  background: #c96a00;
  color: #fff;
}
.buy-btn-inline:active { transform: scale(0.97); }
.buy-btn-inline:focus-visible {
  outline: 2px solid #e87400;
  outline-offset: 2px;
}

/* ---------- Empty State ---------- */
.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: #94a3b8;
  font-size: 0.95rem;
}

/* ---------- Footer ---------- */
.site-footer {
  margin-top: auto;
  padding: 32px 0;
  background: #0f172a;
  color: #94a3b8;
  font-size: 0.8rem;
  border-top: 2px solid #2563eb;
}
.site-footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}
.site-footer a {
  color: #60a5fa;
  text-decoration: none;
}
.site-footer a:hover { color: #93bbfd; }
.footer-disclosure {
  max-width: 640px;
  line-height: 1.55;
  font-style: italic;
}
.footer-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ==============================================
   RESPONSIVE — 768px+
   ============================================== */

/* ---------- FAQ Section ---------- */
.faq-section {
  margin: 24px 0;
}
.faq-item {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  margin-bottom: 8px;
  overflow: hidden;
}
.faq-question {
  font-weight: 600;
  font-size: 0.95rem;
  color: #0f172a;
  background: #f8fafc;
  padding: 12px 16px;
  cursor: pointer;
  transition: background 0.2s;
}
.faq-question:hover {
  background: #f1f5f9;
}
.faq-answer {
  padding: 12px 16px;
  font-size: 0.9rem;
  color: #475569;
  line-height: 1.65;
  border-top: 1px solid #e2e8f0;
}
.faq-answer p {
  margin: 0 0 8px;
}
.faq-answer p:last-child { margin: 0; }

/* ---------- Footer Copyright ---------- */
.footer-copyright {
  font-size: 0.75rem;
  color: #94a3b8;
  text-align: center;
  margin-top: 8px;
}

@media (min-width: 768px) {
  .container { padding: 0 24px; }

  .site-logo { font-size: 1.5rem; }
  .site-tagline { font-size: 0.8rem; }

  .hero { padding: 40px 0 48px; }
  .hero h1 { font-size: 2rem; }
  .hero p { font-size: 1.05rem; }

  .section-heading { font-size: 1.35rem; }

  .post-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .post-card { padding: 24px; }
  .post-card-title { font-size: 1.15rem; }

  .post-full {
    padding: 36px 32px;
  }
  .post-full h1 { font-size: 1.8rem; }
  .post-full h2 { font-size: 1.3rem; }

  .proscons-grid {
    grid-template-columns: 1fr 1fr;
  }

  .who-for-grid {
    grid-template-columns: 1fr 1fr;
  }

  .review-img { margin: 20px auto; }

  .specs-card li strong { min-width: 140px; }

  .toc { padding: 20px 24px; }
}

/* ==============================================
   RESPONSIVE — 1024px+
   ============================================== */
@media (min-width: 1024px) {
  .container { padding: 0 32px; }

  .post-list {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }

  .post-full {
    padding: 40px 40px;
  }
  .post-full h1 { font-size: 2rem; }

  .hero h1 { font-size: 2.2rem; }

  .site-nav { gap: 4px; }
  .site-nav a { padding: 8px 16px; }
}

/* ==============================================
   RESPONSIVE — 1200px+
   ============================================== */
@media (min-width: 1200px) {
  .container { max-width: 1140px; }

  .hero { padding: 56px 0 60px; }

  .post-full {
    max-width: 820px;
  }
}

/* ---------- Print Styles ---------- */
@media print {
  .site-header,
  .site-footer,
  .skip-link,
  .lang-switch,
  .buy-btn,
  .post-card-btn { display: none; }
  body { background: #fff; color: #000; }
  .post-full { border: none; box-shadow: none; }
  a { color: #000; text-decoration: underline; }
}

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- Breadcrumbs ---------- */
.breadcrumbs {
  font-size: 0.8rem;
  color: #94a3b8;
  padding: 8px 0 16px;
}
.breadcrumbs a { color: #2563eb; }
.breadcrumbs span { margin: 0 6px; color: #cbd5e1; }

/* ---------- Post Card Thumbnail ---------- */
.post-card-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 12px;
  border: 1px solid #e2e8f0;
}

/* ---------- Category Nav ---------- */
.category-nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e2e8f0;
}
.category-tag {
  font-size: 0.8rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #475569;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
  font-family: inherit;
}
.category-tag:hover, .category-tag.active {
  background: #2563eb;
  color: #fff;
  border-color: #2563eb;
}

/* ---------- Comparison Table ---------- */
.compare-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 0.85rem;
}
.compare-table th {
  background: #f1f5f9;
  padding: 10px 12px;
  text-align: left;
  font-weight: 600;
  color: #0f172a;
  border: 1px solid #e2e8f0;
}
.compare-table td {
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
  color: #334155;
}
.compare-table tr:nth-child(even) td { background: #f8fafc; }

/* ---------- Related Posts ---------- */
.related-posts { margin-top: 40px; padding-top: 24px; border-top: 1px solid #e2e8f0; }
.related-posts h2 { border-bottom: none; margin-bottom: 16px; }
.related-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 768px) { .related-grid { grid-template-columns: repeat(2, 1fr); } }
.related-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 16px;
  transition: box-shadow 0.2s;
}
.related-card:hover { box-shadow: 0 2px 12px rgba(0,0,0,0.06); }
.related-card h4 { font-size: 0.95rem; margin-bottom: 4px; }
.related-card h4 a { color: #0f172a; text-decoration: none; }
.related-card h4 a:hover { color: #2563eb; }
.related-card .related-meta { font-size: 0.75rem; color: #94a3b8; }

/* ---------- Quick Verdict Box ---------- */
.quick-verdict {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  padding: 14px 18px;
  margin: 16px 0;
  font-size: 0.9rem;
  line-height: 1.6;
}
.quick-verdict strong { color: #1e40af; }

/* ---------- Helpful Vote ---------- */
.helpful-vote {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  padding: 12px 0;
  border-top: 1px solid #e2e8f0;
  font-size: 0.85rem;
  color: #64748b;
}
.helpful-vote button {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 6px 14px;
  cursor: pointer;
  font-size: 0.85rem;
  font-family: inherit;
  transition: background 0.2s;
}
.helpful-vote button:hover { background: #e2e8f0; }
.helpful-vote button.voted { background: #dbeafe; border-color: #2563eb; color: #2563eb; }
