/* Base reset and variables */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --primary: #FF9900;
  --primary-dark: #e68900;
  --text: #1a1a1a;
  --text-muted: #555;
  --bg: #f8f9fa;
  --card-bg: #ffffff;
  --border: #e0e0e0;
  --pro-color: #1a8a1a;
  --con-color: #cc2200;
  --radius: 8px;
  --shadow: 0 2px 8px rgba(0,0,0,0.08);
  --max-width: 900px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

/* Layout */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header */
.site-header {
  background: var(--text);
  color: #fff;
  padding: 2.5rem 1rem;
  text-align: center;
}

.site-header h1 {
  font-size: clamp(1.5rem, 4vw, 2.4rem);
  font-weight: 800;
  line-height: 1.2;
}

.site-header .subtitle {
  margin-top: 0.5rem;
  color: #ccc;
  font-size: 1rem;
}

/* Affiliate disclosure banner */
.affiliate-disclosure {
  background: #fffbe6;
  border: 1px solid #ffe58f;
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  margin: 1.5rem 0;
  font-size: 0.85rem;
  color: #664d00;
}

/* Intro */
.intro {
  margin: 1.5rem 0;
  font-size: 1.1rem;
  color: var(--text-muted);
}

/* Table of Contents */
.toc {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}

.toc h2 {
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.toc ol {
  padding-left: 1.25rem;
}

.toc li {
  margin: 0.25rem 0;
}

.toc a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.95rem;
}

.toc a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* Products section */
.products {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin: 2rem 0;
}

/* Product card */
.product-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 1.25rem;
  padding: 1.5rem;
  position: relative;
  scroll-margin-top: 1rem;
}

.product-card.no-image {
  grid-template-columns: 1fr;
}
.product-card.no-image .product-image {
  display: none;
}

@media (max-width: 640px) {
  .product-card {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  .rank-badge {
    position: static !important;
    display: inline-block;
    margin-bottom: 0.5rem;
  }
}

/* Rank badge */
.rank-badge {
  position: absolute;
  top: -12px;
  left: 1.25rem;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  font-size: 0.8rem;
  padding: 0.15rem 0.6rem;
  border-radius: 20px;
}

/* Product image */
.product-image {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 0.5rem;
}

.product-image img {
  max-width: 180px;
  max-height: 180px;
  object-fit: contain;
  border-radius: 4px;
}

/* Product info */
.product-info {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.product-title {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.3;
}

.product-title a {
  color: var(--text);
  text-decoration: none;
}

.product-title a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* Meta: rating + price */
.product-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.rating {
  color: var(--primary);
  font-size: 1rem;
}

.rating-value {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-left: 0.25rem;
}

.review-count {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.price {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
}

/* Summary */
.product-summary {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Pros / Cons */
.pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 480px) {
  .pros-cons {
    grid-template-columns: 1fr;
  }
}

.pros h3,
.cons h3 {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.4rem;
}

.pros h3 {
  color: var(--pro-color);
}

.cons h3 {
  color: var(--con-color);
}

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

.pros li::before {
  content: "✓ ";
  color: var(--pro-color);
  font-weight: 700;
}

.cons li::before {
  content: "✗ ";
  color: var(--con-color);
  font-weight: 700;
}

.pros li,
.cons li {
  margin: 0.2rem 0;
  line-height: 1.4;
}

/* CTA Button */
.cta-button {
  display: inline-block;
  background: var(--primary);
  color: #111;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius);
  margin-top: 0.5rem;
  transition: background 0.15s;
  align-self: flex-start;
}

.cta-button:hover {
  background: var(--primary-dark);
}

/* Verdict */
.verdict {
  background: var(--card-bg);
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
}

.verdict h2 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.verdict p {
  color: var(--text-muted);
  font-size: 0.97rem;
}

/* Footer */
.site-footer {
  background: #1a1a1a;
  color: #aaa;
  padding: 2rem 1rem;
  margin-top: 3rem;
  text-align: center;
}

.footer-disclosure {
  font-size: 0.8rem;
  max-width: 700px;
  margin: 0 auto 0.75rem;
  line-height: 1.6;
}

.footer-note {
  font-size: 0.78rem;
  margin-bottom: 0.75rem;
}

.site-footer p:last-child {
  font-size: 0.8rem;
  color: #666;
}
