/* === Reset & Base === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: #1a1a1a;
  background: #f8f8f8;
  line-height: 1.6;
}
a { color: #d97706; text-decoration: none; }
a:hover { color: #b45309; text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }

/* === Nav === */
.site-nav {
  background: #1a1a1a;
  padding: 0 1rem;
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}
.site-logo {
  color: #f59e0b;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}
.site-logo:hover { color: #fbbf24; text-decoration: none; }

/* === Hero === */
.hero {
  text-align: center;
  padding: 2.5rem 1rem 1.5rem;
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
}
.hero h1 {
  font-size: 1.75rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 0.5rem;
}
.hero-sub {
  color: #6b7280;
  font-size: 1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* === Table Controls === */
.table-controls {
  max-width: 1200px;
  margin: 1.5rem auto 0;
  padding: 0 1rem;
}
.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 0.75rem;
}
.filter-chips { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.chip {
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 999px;
  padding: 0.375rem 1rem;
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
  font-family: inherit;
  color: #374151;
}
.chip:hover { border-color: #f59e0b; color: #d97706; }
.chip.active {
  background: #f59e0b;
  border-color: #f59e0b;
  color: #fff;
}
.filter-select {
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 0.375rem 0.75rem;
  font-size: 0.8125rem;
  font-family: inherit;
  color: #374151;
  cursor: pointer;
}
.result-count {
  font-size: 0.8125rem;
  color: #6b7280;
}

/* === Table === */
.table-wrapper {
  max-width: 1200px;
  margin: 1rem auto 2rem;
  padding: 0 1rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.battery-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  min-width: 700px;
}
.battery-table thead {
  background: #1a1a1a;
  color: #fff;
}
.battery-table th {
  padding: 0.75rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-align: left;
  white-space: nowrap;
  user-select: none;
}
.battery-table th.sortable { cursor: pointer; }
.battery-table th.sortable:hover { color: #f59e0b; }
.sort-arrow { font-size: 0.625rem; margin-left: 0.25rem; }
.battery-table td {
  padding: 0.625rem 0.75rem;
  font-size: 0.875rem;
  border-bottom: 1px solid #f3f4f6;
  vertical-align: middle;
}
.battery-table tbody tr:hover { background: #fffbeb; }
.col-image { width: 80px; }
.col-image img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  border-radius: 4px;
  background: #f9fafb;
}
.col-name { min-width: 200px; }
.col-name a { font-weight: 500; }
.col-ppwh { white-space: nowrap; }
.col-ppwh strong { color: #059669; font-size: 0.9375rem; }
.col-price { white-space: nowrap; }
.form-factor-tag {
  display: inline-block;
  background: #f3f4f6;
  color: #6b7280;
  font-size: 0.6875rem;
  padding: 0.125rem 0.5rem;
  border-radius: 999px;
  text-transform: capitalize;
}
.col-compat { font-size: 0.8125rem; white-space: nowrap; }
.stars { color: #f59e0b; font-weight: 600; }
.review-count { color: #9ca3af; font-size: 0.75rem; }

/* === Blog === */
.blog-list {
  max-width: 800px;
  margin: 2rem auto;
  padding: 0 1rem;
}
.blog-list h1 { font-size: 1.5rem; margin-bottom: 1.5rem; }
.blog-card {
  background: #fff;
  border-radius: 8px;
  padding: 1.25rem;
  margin-bottom: 1rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.blog-card h2 { font-size: 1.125rem; margin-bottom: 0.25rem; }
.blog-card h2 a { color: #1a1a1a; }
.blog-card h2 a:hover { color: #d97706; }
.blog-card time { font-size: 0.8125rem; color: #9ca3af; }
.blog-card p { color: #6b7280; font-size: 0.875rem; margin-top: 0.5rem; }

/* === Blog Post === */
.blog-post {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1rem;
}
.post-header { margin-bottom: 2rem; }
.post-header h1 { font-size: 1.75rem; line-height: 1.3; margin-bottom: 0.5rem; }
.post-header time { color: #9ca3af; font-size: 0.875rem; }
.post-content { line-height: 1.8; }
.post-content p { margin-bottom: 1.25rem; }
.post-content h2 { font-size: 1.375rem; margin: 2rem 0 1rem; }
.post-content h3 { font-size: 1.125rem; margin: 1.5rem 0 0.75rem; }
.post-content img {
  border-radius: 8px;
  margin: 1.5rem 0;
}
.post-content figure { margin: 1.5rem 0; }
.post-content figcaption { font-size: 0.8125rem; color: #9ca3af; text-align: center; margin-top: 0.5rem; }
.post-content blockquote {
  border-left: 3px solid #f59e0b;
  padding-left: 1rem;
  margin: 1.5rem 0;
  color: #6b7280;
  font-style: italic;
}
.post-content a { text-decoration: underline; }
.post-content iframe { max-width: 100%; border-radius: 8px; }

/* === Disclosure Page === */
.page-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1rem;
}
.page-content h1 { font-size: 1.5rem; margin-bottom: 1rem; }
.page-content p { margin-bottom: 1rem; line-height: 1.8; }

/* === Footer === */
.site-footer {
  background: #1a1a1a;
  color: #9ca3af;
  padding: 1.5rem 1rem;
  text-align: center;
  font-size: 0.8125rem;
}
.footer-inner { max-width: 1200px; margin: 0 auto; }
.affiliate-notice { margin-bottom: 0.5rem; }
.affiliate-notice a { color: #f59e0b; }
.footer-links { margin-bottom: 0.5rem; }
.footer-links a { color: #d1d5db; }
.footer-links a:hover { color: #fff; }

/* === Mobile === */
@media (max-width: 640px) {
  .hero h1 { font-size: 1.375rem; }
  .hero-sub { font-size: 0.875rem; }
  .filter-group { gap: 0.5rem; }
  .chip { padding: 0.25rem 0.75rem; font-size: 0.75rem; }
  .col-image img { width: 48px; height: 48px; }
  .battery-table td { padding: 0.5rem; font-size: 0.8125rem; }
  .blog-post { padding: 1.5rem 1rem; }
  .post-header h1 { font-size: 1.375rem; }
}
