/* Base Reset & Variables */
:root {
  --bg-primary: #1a1a1a;
  --bg-secondary: #242424;
  --bg-card: #2a2a2a;
  --text-primary: #e8e8e8;
  --text-secondary: #b0b0b0;
  --accent: #ff6b35;
  --accent-hover: #ff8c5a;
  --star: #ffc107;
  --success: #4caf50;
  --border: #333;
  --header-bg: #111;
  --max-width: 1200px;
}

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

html {
  scroll-behavior: smooth;
}

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

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

a:hover {
  color: var(--accent-hover);
}

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

/* Header */
.site-header {
  background: var(--header-bg);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--border);
  padding: 0 20px;
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
}

.logo span {
  color: var(--accent);
}

nav ul {
  display: flex;
  list-style: none;
  gap: 24px;
}

nav a {
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s;
}

nav a:hover {
  color: #fff;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero */
.hero {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  padding: 80px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at center, rgba(255,107,53,0.1) 0%, transparent 70%);
}

.hero-content {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 2.8rem;
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
  margin-bottom: 16px;
  line-height: 1.2;
}

.hero p {
  font-size: 1.2rem;
  color: #ffffff;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
  margin-bottom: 24px;
  opacity: 0.9;
}

.hero .updated {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

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

/* Product Cards */
.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
  margin-bottom: 32px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.product-card .rank {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
}

.product-card h2, .product-card h3 {
  font-size: 1.5rem;
  margin-bottom: 8px;
  color: #fff;
}

.product-card .rating {
  color: var(--star);
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.product-card .price {
  color: var(--text-secondary);
  font-size: 1rem;
  margin-bottom: 16px;
}

.product-card .description {
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.6;
}

.pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

.pros h4, .cons h4 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.pros h4 {
  color: var(--success);
}

.cons h4 {
  color: #e74c3c;
}

.pros ul, .cons ul {
  list-style: none;
  padding: 0;
}

.pros li, .cons li {
  padding: 4px 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.pros li::before {
  content: '✓ ';
  color: var(--success);
}

.cons li::before {
  content: '✗ ';
  color: #e74c3c;
}

.btn-amazon {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 14px 32px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  transition: background 0.2s, transform 0.1s;
}

.btn-amazon:hover {
  background: var(--accent-hover);
  color: #fff;
  transform: translateY(-1px);
}

/* Section Headings */
.section-title {
  font-size: 2rem;
  margin-bottom: 32px;
  color: #fff;
  text-align: center;
}

.section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  margin-top: -24px;
  margin-bottom: 40px;
}

/* Buyer's Guide / Article Styles */
.article-content {
  max-width: 800px;
  margin: 0 auto;
}

.article-content h2 {
  font-size: 1.8rem;
  margin: 40px 0 16px;
  color: #fff;
}

.article-content h3 {
  font-size: 1.3rem;
  margin: 32px 0 12px;
  color: #fff;
}

.article-content p {
  margin-bottom: 16px;
  color: var(--text-secondary);
}

.article-content ul, .article-content ol {
  margin: 16px 0;
  padding-left: 24px;
  color: var(--text-secondary);
}

.article-content li {
  margin-bottom: 8px;
}

/* FAQ */
.faq-section {
  margin-top: 48px;
}

.faq-item {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px 24px;
  margin-bottom: 12px;
}

.faq-item h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: #fff;
}

.faq-item p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Footer */
.site-footer {
  background: var(--header-bg);
  border-top: 1px solid var(--border);
  padding: 40px 20px;
  margin-top: 60px;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
}

.footer-about p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-top: 12px;
}

.footer-links h4, .footer-network h4 {
  color: #fff;
  margin-bottom: 12px;
  font-size: 0.95rem;
}

.footer-links ul, .footer-network ul {
  list-style: none;
}

.footer-links li, .footer-network li {
  margin-bottom: 8px;
}

.footer-links a, .footer-network a {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.footer-bottom {
  max-width: var(--max-width);
  margin: 24px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  text-align: center;
}

.affiliate-disclosure {
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-style: italic;
}

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

.comparison-table th {
  background: var(--bg-secondary);
  padding: 14px 16px;
  text-align: left;
  font-size: 0.9rem;
  color: #fff;
  border-bottom: 1px solid var(--border);
}

.comparison-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.9rem;
}

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

/* Contact Form */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
  color: var(--text-primary);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 1rem;
  font-family: inherit;
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.btn-submit {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 14px 32px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-submit:hover {
  background: var(--accent-hover);
}

/* Category Cards (Homepage) */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.category-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  transition: transform 0.2s;
}

.category-card:hover {
  transform: translateY(-3px);
}

.category-card h3 {
  color: #fff;
  margin-bottom: 8px;
}

.category-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .pros-cons {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  nav ul {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--header-bg);
    flex-direction: column;
    padding: 20px;
    gap: 16px;
    border-bottom: 1px solid var(--border);
  }

  nav ul.active {
    display: flex;
  }

  .mobile-toggle {
    display: block;
  }

  .product-card {
    padding: 20px;
  }

  .comparison-table {
    font-size: 0.8rem;
  }

  .comparison-table th,
  .comparison-table td {
    padding: 8px 10px;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 50px 16px;
  }

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

  .container {
    padding: 24px 16px;
  }
}
