:root {
  --bg: #f8fafc;
  --bg-card: #ffffff;
  --ink: #1e293b;
  --ink-light: #64748b;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --accent-light: #dbeafe;
  --success: #059669;
  --warning: #d97706;
  --border: #e2e8f0;
  --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
  --radius: 12px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Header */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header .logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-header .logo .logo-icon {
  width: 32px;
  height: 32px;
  color: var(--accent);
}

.site-header nav {
  display: flex;
  gap: 8px;
}

.site-header nav a {
  padding: 8px 16px;
  border-radius: 8px;
  color: var(--ink);
  font-weight: 500;
  font-size: 0.95rem;
  transition: background 0.2s;
}

.site-header nav a:hover {
  background: var(--bg);
  text-decoration: none;
}

/* Main content */
.content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 24px;
}

/* Homepage Hero */
.hero {
  text-align: center;
  padding: 60px 20px 80px;
  background: linear-gradient(135deg, #1e40af 0%, #7c3aed 100%);
  color: white;
  margin: -40px -24px 40px;
}

.hero h1 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.hero p {
  font-size: 1.2rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.2);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  margin-bottom: 20px;
}

/* Section titles */
.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--ink);
}

/* Card grid */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  margin-bottom: 48px;
}

.card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s, transform 0.2s;
  text-decoration: none;
  color: inherit;
  display: block;
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
  text-decoration: none;
}

.card-icon {
  width: 48px;
  height: 48px;
  background: var(--accent-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--ink);
}

.card p {
  color: var(--ink-light);
  font-size: 0.95rem;
  margin: 0;
}

.card-meta {
  display: flex;
  gap: 16px;
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--ink-light);
}

/* Category cards */
.category-card {
  background: linear-gradient(135deg, var(--bg-card) 0%, var(--accent-light) 100%);
  border: 1px solid var(--border);
}

.category-card .card-icon {
  background: var(--accent);
  color: white;
}

/* List pages */
.page-header {
  margin-bottom: 32px;
}

.page-header h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.page-header p {
  color: var(--ink-light);
  font-size: 1.1rem;
}

.post-list {
  list-style: none;
}

.post-list li {
  margin-bottom: 16px;
}

.post-list a {
  display: block;
  background: var(--bg-card);
  padding: 20px 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  color: var(--ink);
  font-weight: 500;
  transition: box-shadow 0.2s, transform 0.2s;
}

.post-list a:hover {
  box-shadow: var(--shadow-lg);
  transform: translateX(4px);
  text-decoration: none;
  color: var(--accent);
}

/* Article styles */
.post {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
}

.post h1 {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 16px;
}

.post .meta {
  color: var(--ink-light);
  font-size: 0.9rem;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.post h2 {
  font-size: 1.4rem;
  font-weight: 600;
  margin: 40px 0 16px;
  color: var(--ink);
}

.post h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 32px 0 12px;
  color: var(--ink);
}

.post p {
  margin-bottom: 16px;
  line-height: 1.7;
}

.post ul, .post ol {
  margin: 0 0 24px 24px;
}

.post li {
  margin-bottom: 8px;
  line-height: 1.6;
}

.post strong {
  font-weight: 600;
}

/* Pros/Cons styling */
.post ul li:has(strong:first-child) {
  list-style: none;
  margin-left: -24px;
  padding: 8px 12px;
  border-radius: 6px;
}

/* Product box */
.product-box, .post blockquote {
  background: var(--accent-light);
  border-left: 4px solid var(--accent);
  padding: 20px 24px;
  margin: 24px 0;
  border-radius: 0 8px 8px 0;
}

.post blockquote p {
  margin: 0;
  font-style: italic;
}

/* Buy button */
.buy-link, .post a[href*="amazon"], .post a[href*="walmart"], .post a[href*="homedepot"], .post a[href*="target"], .post a[href*="chewy"] {
  display: inline-block;
  background: var(--success);
  color: white !important;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  margin: 8px 8px 8px 0;
  transition: background 0.2s;
}

.buy-link:hover, .post a[href*="amazon"]:hover, .post a[href*="walmart"]:hover, .post a[href*="homedepot"]:hover, .post a[href*="target"]:hover, .post a[href*="chewy"]:hover {
  background: #047857;
  text-decoration: none;
}

/* Specs table */
.post table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  background: var(--bg-card);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.post th, .post td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.post th {
  background: var(--bg);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--ink-light);
}

.post tr:last-child td {
  border-bottom: none;
}

/* Score badge */
.score {
  display: inline-block;
  background: var(--accent);
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.9rem;
}

/* Footer */
.site-footer {
  padding: 40px 24px;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  text-align: center;
  margin-top: 60px;
}

.site-footer .disclosure {
  color: var(--ink-light);
  font-size: 0.85rem;
  max-width: 600px;
  margin: 0 auto 12px;
  line-height: 1.5;
}

.site-footer p:last-child {
  color: var(--ink);
  font-weight: 500;
}

/* Responsive */
@media (max-width: 768px) {
  .site-header {
    flex-direction: column;
    gap: 16px;
  }

  .site-header nav {
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero {
    padding: 40px 20px 60px;
  }

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

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

  .post {
    padding: 24px;
  }

  .post h1 {
    font-size: 1.5rem;
  }
}
