/* Best Tire Patch - Light Automotive Theme */
:root {
  --bg-primary: #ffffff;
  --bg-secondary: #f5f7fa;
  --bg-card: #ffffff;
  --text-primary: #1a1a1a;
  --text-secondary: #4a5568;
  --accent: #c8102e;
  --accent-hover: #a00d24;
  --orange: #ff9900;
  --orange-hover: #e88b00;
  --star: #f5a623;
  --border: #e2e8f0;
  --shadow: rgba(0,0,0,0.08);
  --hero-grad-1: #1a2332;
  --hero-grad-2: #2d3e50;
  --hero-grad-3: #3a4a5c;
}

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

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.3s; }
a:hover { color: var(--accent-hover); }

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

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
  box-shadow: 0 2px 8px var(--shadow);
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.02em;
}

.nav { display: flex; gap: 1.5rem; list-style: none; }
.nav a { color: var(--text-primary); font-weight: 600; font-size: 0.95rem; }
.nav a:hover { color: var(--accent); }

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Container */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.narrow { max-width: 800px; }

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--hero-grad-1) 0%, var(--hero-grad-2) 50%, var(--hero-grad-3) 100%);
  padding: 5rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at 30% 50%, rgba(200,16,46,0.18) 0%, transparent 50%);
}

.hero h1 {
  color: #ffffff;
  font-size: 2.8rem;
  font-weight: 800;
  text-shadow: 2px 2px 6px rgba(0,0,0,0.6);
  margin-bottom: 1rem;
  position: relative;
  letter-spacing: -0.01em;
}

.hero p {
  color: #ffffff;
  font-size: 1.2rem;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.6);
  max-width: 720px;
  margin: 0 auto;
  position: relative;
}

.hero .updated {
  color: #ffffff;
  opacity: 0.85;
  font-size: 0.9rem;
  margin-top: 1rem;
  position: relative;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.6);
}

/* Product Cards */
.products-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding: 3rem 0;
}

.product-card {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 2rem;
  border: 1px solid var(--border);
  transition: transform 0.3s, box-shadow 0.3s;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 2rem;
  align-items: start;
  position: relative;
  box-shadow: 0 2px 6px var(--shadow);
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px var(--shadow);
}

.product-rank {
  position: absolute;
  top: -12px;
  left: -12px;
  background: var(--accent);
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  box-shadow: 0 4px 12px rgba(200,16,46,0.35);
}

.product-image {
  width: 100%;
  height: 220px;
  background: #fafbfc;
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0.5rem;
}

.product-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.product-info h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  font-weight: 700;
}

.product-rating {
  color: var(--star);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.product-price {
  font-size: 1.15rem;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 1rem;
}

.pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

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

.pros h4 { color: #2a8a3e; }
.cons h4 { color: #c8102e; }

.pros ul, .cons ul {
  list-style: none;
  font-size: 0.92rem;
  color: var(--text-secondary);
}

.pros li, .cons li { margin-bottom: 0.3rem; }
.pros li::before { content: '✓ '; color: #2a8a3e; font-weight: 700; }
.cons li::before { content: '✗ '; color: #c8102e; font-weight: 700; }

.btn-amazon {
  display: inline-block;
  background: var(--orange);
  color: #1a1a1a;
  padding: 0.85rem 2rem;
  border-radius: 6px;
  font-weight: 700;
  font-size: 1rem;
  transition: background 0.3s, transform 0.2s;
  text-align: center;
  border: 1px solid #e88b00;
}

.btn-amazon:hover {
  background: var(--orange-hover);
  color: #1a1a1a;
  transform: scale(1.02);
}

/* Sections */
.section { padding: 4rem 0; }
.section-alt { background: var(--bg-secondary); }

.section h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
  font-weight: 800;
  letter-spacing: -0.01em;
}

.section h3 {
  font-size: 1.4rem;
  margin: 2rem 0 1rem;
  color: var(--text-primary);
  font-weight: 700;
}

.section p, .section li {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.section ul, .section ol {
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}

/* FAQ */
.faq-item {
  background: var(--bg-card);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  border: 1px solid var(--border);
  box-shadow: 0 1px 3px var(--shadow);
}

.faq-item h3 {
  color: var(--text-primary);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  margin-top: 0;
}

.faq-item p {
  color: var(--text-secondary);
  margin: 0;
}

/* Footer */
.footer {
  background: #1a2332;
  border-top: 1px solid #0f1620;
  padding: 3rem 0;
  text-align: center;
}

.footer p {
  color: #b8c2cc;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.footer-links a { color: #ffffff; font-size: 0.9rem; font-weight: 500; }
.footer-links a:hover { color: var(--orange); }

.affiliate-disclosure {
  background: #fffbe6;
  border: 1px solid #ffe58f;
  border-radius: 8px;
  padding: 1rem 1.5rem;
  margin: 2rem auto;
  max-width: 760px;
  font-size: 0.9rem;
  color: #614700;
}

/* Table of Contents */
.toc {
  background: var(--bg-secondary);
  border-radius: 8px;
  padding: 1.5rem 2rem;
  margin-bottom: 2rem;
  border-left: 4px solid var(--accent);
}

.toc h3 { margin-bottom: 1rem; color: var(--text-primary); font-size: 1.1rem; margin-top: 0; }
.toc ol { padding-left: 1.5rem; }
.toc li { margin-bottom: 0.4rem; }
.toc a { color: var(--accent); }

/* Comparison Table */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  background: var(--bg-card);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px var(--shadow);
  font-size: 0.95rem;
}

.comparison-table th, .comparison-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.comparison-table th {
  background: var(--hero-grad-1);
  color: #ffffff;
  font-weight: 700;
}

.comparison-table tr:nth-child(even) { background: #fafbfc; }
.comparison-table td { color: var(--text-secondary); }
.comparison-table td strong { color: var(--text-primary); }

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

.form-group { margin-bottom: 1.5rem; }

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  font-weight: 600;
}

.form-group input, .form-group textarea, .form-group select {
  width: 100%;
  padding: 0.8rem 1rem;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-primary);
  font-size: 1rem;
  font-family: inherit;
}

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

.btn-submit {
  background: var(--accent);
  color: #fff;
  padding: 0.85rem 2rem;
  border: none;
  border-radius: 6px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s;
}

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

/* Callouts */
.callout {
  background: #fff5f5;
  border-left: 4px solid var(--accent);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  border-radius: 4px;
  color: var(--text-primary);
}

/* Responsive */
@media (max-width: 768px) {
  .hero { padding: 3rem 0; }
  .hero h1 { font-size: 2rem; }
  .hero p { font-size: 1rem; }
  
  .product-card {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .pros-cons { grid-template-columns: 1fr; }
  
  .nav { display: none; }
  .nav.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 4px 12px var(--shadow);
  }
  
  .mobile-toggle { display: block; }
  
  .comparison-table { font-size: 0.85rem; }
  .comparison-table th, .comparison-table td { padding: 0.6rem; }

  .section { padding: 2.5rem 0; }
  .section h2 { font-size: 1.6rem; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.6rem; }
  .container { padding: 0 1rem; }
  .product-card { padding: 1.5rem; }
}

