:root {
  --primary: #1a56db;
  --primary-dark: #1e429f;
  --bg: #ffffff;
  --bg-alt: #f9fafb;
  --text: #111827;
  --text-light: #6b7280;
  --border: #e5e7eb;
  --success: #059669;
  --warning: #d97706;
  --radius: 8px;
}

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

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

.container { max-width: 900px; margin: 0 auto; padding: 0 20px; }
.wide-container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Header */
header {
  background: linear-gradient(135deg, #0c2340 0%, #1a56db 100%);
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo { margin: 0; }
.logo a {
  color: white;
  text-decoration: none;
  font-size: 1.4rem;
  font-weight: 800;
}
nav { display: flex; align-items: center; gap: 4px; }
nav > a {
  color: rgba(255,255,255,0.9);
  text-decoration: none;
  font-size: 0.9rem;
  padding: 8px 14px;
  border-radius: var(--radius);
  transition: background 0.2s;
}
nav > a:hover { background: rgba(255,255,255,0.15); }
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Dropdown */
.dropdown { position: relative; }
.dropdown-toggle {
  color: rgba(255,255,255,0.9);
  text-decoration: none;
  font-size: 0.9rem;
  padding: 8px 14px;
  border-radius: var(--radius);
  cursor: pointer;
  display: inline-block;
  transition: background 0.2s;
}
.dropdown-toggle:hover { background: rgba(255,255,255,0.15); }
.dropdown-toggle .arrow { font-size: 0.7rem; }
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  min-width: 220px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  z-index: 200;
  padding: 6px 0;
  margin-top: 4px;
}
.dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu a {
  display: block;
  padding: 10px 18px;
  color: var(--text);
  text-decoration: none;
  font-size: 0.9rem;
  transition: background 0.15s;
}
.dropdown-menu a:hover { background: var(--bg-alt); color: var(--primary); }

/* Breadcrumbs */
.breadcrumbs {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
  font-size: 0.85rem;
  color: var(--text-light);
}
.breadcrumbs a { color: var(--primary); text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs .sep { margin: 0 6px; color: #d1d5db; }

/* Hero */
.hero {
  text-align: center;
  padding: 56px 24px;
  background: linear-gradient(135deg, #0c2340 0%, #1a56db 100%);
  color: white;
  border-radius: var(--radius);
  margin: 24px 0 32px;
}
.hero h1 { font-size: 2.4rem; margin-bottom: 12px; font-weight: 800; }
.hero-sub { font-size: 1.15rem; opacity: 0.95; margin-bottom: 8px; }
.hero-desc { font-size: 1rem; opacity: 0.8; max-width: 600px; margin: 0 auto; }

/* Sections */
.section { margin: 40px 0; }
.section-title {
  font-size: 1.6rem;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--primary);
  color: #0c2340;
}

/* Niche Grid */
.niche-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.niche-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-decoration: none;
  color: inherit;
  background: var(--bg-alt);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.niche-card:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(26, 86, 219, 0.12);
  transform: translateY(-2px);
}
.niche-card h3 { color: var(--primary); margin-bottom: 10px; font-size: 1.15rem; }
.niche-stats { margin-bottom: 10px; }
.niche-top-pick {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 12px;
  flex-grow: 1;
}
.niche-cta {
  font-size: 0.9rem;
  color: var(--primary);
  font-weight: 600;
  margin-top: auto;
}

/* Badges */
.badge {
  display: inline-block;
  background: #e0e7ff;
  color: var(--primary-dark);
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 0.78rem;
  font-weight: 500;
  margin-right: 6px;
}
.badge-green { background: #d1fae5; color: #065f46; }
.niche-badge {
  display: inline-block;
  background: var(--primary);
  color: white;
  padding: 3px 12px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 500;
  margin-bottom: 8px;
}

/* Product cards */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}
.product-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  background: var(--bg-alt);
}
.product-card h3 { margin-bottom: 8px; font-size: 1.05rem; }
.product-meta { margin-bottom: 14px; font-size: 0.9rem; }
.price { font-size: 1.3rem; font-weight: 700; color: var(--success); margin-right: 8px; }
.rating { color: var(--text-light); }
.reviews { color: var(--text-light); font-size: 0.85rem; }

/* CTA button */
.cta-button {
  display: inline-block;
  background: #f59e0b;
  color: white;
  padding: 10px 20px;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background 0.2s;
}
.cta-button:hover { background: #d97706; }

/* Article cards */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}
.article-card {
  display: block;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  text-decoration: none;
  color: inherit;
  background: white;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.article-card:hover {
  border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(26, 86, 219, 0.08);
}
.article-card h3 { font-size: 1rem; color: #0c2340; margin-bottom: 6px; }
.article-meta { font-size: 0.85rem; color: var(--text-light); margin: 0; }

/* Article list items (niche & category pages) */
.article-list-item {
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}
.article-list-item h3 { margin-bottom: 4px; }
.article-list-item h3 a { color: #0c2340; text-decoration: none; font-size: 1.05rem; }
.article-list-item h3 a:hover { color: var(--primary); }

/* Article content */
article { padding: 32px 0; }
article h1 { font-size: 2rem; line-height: 1.3; margin-bottom: 16px; }
article h2 { font-size: 1.5rem; margin: 32px 0 16px; padding-top: 16px; border-top: 1px solid var(--border); }
article h3 { font-size: 1.2rem; margin: 24px 0 12px; }
article p { margin-bottom: 16px; }
article ul, article ol { margin: 16px 0; padding-left: 24px; }
article li { margin-bottom: 8px; }
article img { max-width: 100%; height: auto; border-radius: var(--radius); }
article table { width: 100%; border-collapse: collapse; margin: 16px 0; }
article th, article td { padding: 12px; text-align: left; border-bottom: 1px solid var(--border); }
article th { background: var(--bg-alt); font-weight: 600; }

/* Disclosure banner */
.disclosure-banner {
  background: #fef3c7;
  border-left: 4px solid #f59e0b;
  padding: 12px 16px;
  margin-bottom: 24px;
  border-radius: 4px;
  font-size: 0.9rem;
  color: #92400e;
}
.disclosure-banner a { color: #92400e; }

/* Related articles */
.related-section { margin-top: 48px; padding-top: 32px; border-top: 2px solid var(--border); }
.related-section h2 { font-size: 1.4rem; margin-bottom: 20px; color: #0c2340; border: none; padding: 0; }
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
}
.related-card {
  display: block;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  text-decoration: none;
  color: inherit;
  background: var(--bg-alt);
  transition: border-color 0.2s;
}
.related-card:hover { border-color: var(--primary); }
.related-card h3 { font-size: 1rem; color: #0c2340; margin-bottom: 6px; }

/* Footer */
footer {
  background: #0c2340;
  color: rgba(255,255,255,0.85);
  padding: 48px 0 24px;
  margin-top: 60px;
}
footer h4 { color: white; margin-bottom: 12px; font-size: 1rem; }
footer p { font-size: 0.9rem; line-height: 1.6; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 32px;
}
.footer-links { display: flex; flex-direction: column; gap: 6px; }
.footer-links a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s;
}
.footer-links a:hover { color: white; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 20px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
}
.amazon-disclaimer { margin-top: 6px; font-size: 0.78rem; }

/* Responsive */
@media (max-width: 768px) {
  .hero h1 { font-size: 1.8rem; }
  .hero { padding: 36px 16px; }
  .niche-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .products-grid { grid-template-columns: 1fr; }
  .articles-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  article h1 { font-size: 1.5rem; }
}

@media (max-width: 480px) {
  .niche-grid { grid-template-columns: 1fr; }
  nav { display: none; }
  nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #0c2340;
    padding: 12px;
    gap: 4px;
  }
  nav.open .dropdown-menu {
    position: static;
    box-shadow: none;
    border: none;
    background: rgba(255,255,255,0.1);
    margin-top: 4px;
  }
  nav.open .dropdown-menu a { color: rgba(255,255,255,0.9); }
  .mobile-menu-btn { display: block; }
}