/* AAutomobiles.in - Static Site Styles */
:root {
  --primary: #1a1a2e;
  --primary-light: #16213e;
  --accent: #e94560;
  --accent-hover: #c73652;
  --text: #1f2937;
  --text-light: #6b7280;
  --bg: #ffffff;
  --bg-light: #f9fafb;
  --bg-card: #ffffff;
  --border: #e5e7eb;
  --radius: 12px;
  --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -2px rgba(0,0,0,0.04);
  --max-width: 1200px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg-light);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ─── Navigation ─── */
.main-nav {
  background: var(--primary);
  color: white;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-lg);
}
.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  height: 64px;
  gap: 8px;
}
.logo {
  font-size: 20px;
  font-weight: 800;
  color: white;
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: -0.5px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  flex-wrap: nowrap;
  overflow-x: auto;
}
.nav-link {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  transition: all 0.2s;
}
.nav-link:hover, .nav-link.active {
  color: white;
  background: rgba(255,255,255,0.1);
}
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  padding: 8px;
}

/* ─── Hero ─── */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: white;
  padding: 60px 20px;
  text-align: center;
}
.hero h1 {
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -1px;
}
.hero p {
  font-size: clamp(16px, 2.5vw, 20px);
  opacity: 0.85;
  max-width: 700px;
  margin: 0 auto 30px;
}
.hero-search {
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  gap: 8px;
}
.hero-search input {
  flex: 1;
  padding: 14px 20px;
  border-radius: var(--radius);
  border: none;
  font-size: 16px;
  outline: none;
}
.hero-search button {
  padding: 14px 28px;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: var(--radius);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.hero-search button:hover { background: var(--accent-hover); }

/* ─── Sections ─── */
.section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 50px 20px;
}
.section-title {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}
.section-subtitle {
  color: var(--text-light);
  font-size: 16px;
  margin-bottom: 32px;
}

/* ─── Category Pills ─── */
.category-pills {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 50px;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: 14px;
  transition: all 0.2s;
  box-shadow: var(--shadow);
}
.cat-pill:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* ─── Article Cards ─── */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}
.article-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.3s;
  border: 1px solid var(--border);
}
.article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 14px;
  font-weight: 600;
}
.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.card-body {
  padding: 20px;
}
.card-category {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--accent);
  margin-bottom: 8px;
}
.card-title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 8px;
}
.card-title a {
  color: var(--text);
  text-decoration: none;
}
.card-title a:hover { color: var(--accent); }
.card-excerpt {
  color: var(--text-light);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--text-light);
}
.card-meta span { display: flex; align-items: center; gap: 4px; }

/* ─── Badges ─── */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.badge-featured { background: #fef3c7; color: #92400e; }
.badge-trending { background: #ede9fe; color: #5b21b6; }

/* ─── Article Detail Page ─── */
.article-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: white;
  padding: 50px 20px;
  text-align: center;
}
.article-header .breadcrumb {
  font-size: 14px;
  opacity: 0.7;
  margin-bottom: 16px;
}
.article-header .breadcrumb a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
}
.article-header h1 {
  font-size: clamp(24px, 4vw, 40px);
  font-weight: 800;
  max-width: 800px;
  margin: 0 auto 16px;
  line-height: 1.3;
}
.article-header .meta {
  display: flex;
  justify-content: center;
  gap: 16px;
  font-size: 14px;
  opacity: 0.8;
  flex-wrap: wrap;
}

.article-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px 60px;
}
.article-content h2 {
  font-size: 24px;
  font-weight: 700;
  margin: 40px 0 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border);
}
.article-content h3 {
  font-size: 20px;
  font-weight: 600;
  margin: 30px 0 12px;
}
.article-content p {
  margin-bottom: 16px;
  font-size: 16px;
  line-height: 1.8;
}
.article-content ul, .article-content ol {
  margin: 12px 0 16px 24px;
}
.article-content li {
  margin-bottom: 8px;
}
.article-content strong {
  color: var(--primary);
}

/* TOC */
.toc {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 32px;
}
.toc h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 12px;
}
.toc ol {
  margin-left: 20px;
}
.toc li { margin-bottom: 6px; }
.toc a {
  color: var(--accent);
  text-decoration: none;
  font-size: 14px;
}
.toc a:hover { text-decoration: underline; }

/* Key Takeaways */
.takeaways {
  background: #ecfdf5;
  border-left: 4px solid #10b981;
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 20px 24px;
  margin: 24px 0;
}
.takeaways h4 {
  color: #065f46;
  font-size: 16px;
  margin-bottom: 10px;
}
.takeaways ul { margin-left: 20px; }
.takeaways li { color: #064e3b; font-size: 15px; margin-bottom: 6px; }

/* Pros & Cons */
.pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 24px 0;
}
.pros-box {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: var(--radius);
  padding: 20px;
}
.cons-box {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: var(--radius);
  padding: 20px;
}
.pros-box h4 { color: #065f46; margin-bottom: 10px; }
.cons-box h4 { color: #991b1b; margin-bottom: 10px; }
.pros-box li, .cons-box li { font-size: 14px; margin-bottom: 6px; }

/* FAQ */
.faq-section {
  margin: 40px 0;
}
.faq-section h2 {
  font-size: 24px;
  margin-bottom: 20px;
}
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-question {
  padding: 16px 20px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-card);
}
.faq-question::after {
  content: '+';
  font-size: 20px;
  font-weight: 300;
  color: var(--text-light);
}
.faq-item.open .faq-question::after { content: '−'; }
.faq-answer {
  display: none;
  padding: 0 20px 16px;
  color: var(--text-light);
  line-height: 1.7;
}
.faq-item.open .faq-answer { display: block; }

/* Sources */
.sources {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 2px solid var(--border);
}
.sources h4 { font-size: 16px; margin-bottom: 12px; }
.sources ul { list-style: none; }
.sources li { margin-bottom: 8px; }
.sources a {
  color: var(--accent);
  text-decoration: none;
  font-size: 14px;
}
.sources a:hover { text-decoration: underline; }

/* ─── Tools Page ─── */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.tool-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-decoration: none;
  color: var(--text);
  transition: all 0.3s;
  box-shadow: var(--shadow);
}
.tool-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}
.tool-card .tool-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 12px;
}
.tool-card h3 { font-size: 16px; margin-bottom: 6px; }
.tool-card p { font-size: 14px; color: var(--text-light); }

/* Calculator Forms */
.calc-container {
  max-width: 600px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}
.calc-container h2 { margin-top: 0; }
.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 6px;
  color: var(--text);
}
.form-group input, .form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 16px;
  outline: none;
  transition: border-color 0.2s;
}
.form-group input:focus, .form-group select:focus {
  border-color: var(--accent);
}
.form-hint {
  font-size: 12px;
  color: var(--text-light);
  margin-top: 4px;
}
.calc-btn {
  width: 100%;
  padding: 14px;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.calc-btn:hover { background: var(--accent-hover); }
.calc-result {
  margin-top: 24px;
  padding: 20px;
  background: var(--bg-light);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  display: none;
}
.calc-result h3 { font-size: 18px; margin-bottom: 12px; }
.calc-result .result-value {
  font-size: 32px;
  font-weight: 800;
  color: var(--accent);
}
.calc-result .result-label {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 20px;
}
.result-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.result-table th, .result-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.result-table th {
  font-weight: 600;
  color: var(--text-light);
  font-size: 13px;
}

/* ─── Category Page ─── */
.category-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: white;
  padding: 40px 20px;
  text-align: center;
}
.category-header h1 { font-size: 32px; font-weight: 800; }
.category-header p { opacity: 0.8; margin-top: 8px; }

/* ─── About / Policy Pages ─── */
.content-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px 60px;
}
.content-page h1 {
  font-size: 32px;
  margin-bottom: 24px;
}
.content-page h2 {
  font-size: 22px;
  margin: 32px 0 12px;
}
.content-page p {
  margin-bottom: 16px;
  line-height: 1.8;
}
.content-page ul {
  margin: 12px 0 16px 24px;
}
.content-page li { margin-bottom: 8px; }

/* ─── Footer ─── */
.site-footer {
  background: var(--primary);
  color: rgba(255,255,255,0.8);
  padding: 50px 20px 30px;
  margin-top: 60px;
}
.footer-container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer-col h4 {
  color: white;
  font-size: 16px;
  margin-bottom: 16px;
}
.footer-col p { font-size: 14px; line-height: 1.6; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}
.footer-col a:hover { color: white; }
.copyright {
  margin-top: 16px;
  font-size: 13px;
  opacity: 0.6;
}

/* ─── Trending Bar ─── */
.trending-bar {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  padding: 10px 20px;
  overflow-x: auto;
}
.trending-bar .inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  white-space: nowrap;
}
.trending-bar .label {
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 11px;
}
.trending-bar a {
  color: var(--text-light);
  text-decoration: none;
  transition: color 0.2s;
}
.trending-bar a:hover { color: var(--accent); }

/* ─── Search Results (client-side) ─── */
.search-results {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 40px 20px;
}

/* ─── Responsive ─── */
@media (max-width: 768px) {
  .mobile-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--primary);
    flex-direction: column;
    padding: 16px;
    gap: 4px;
    border-top: 1px solid rgba(255,255,255,0.1);
  }
  .main-nav.open .nav-links { display: flex; }
  .articles-grid { grid-template-columns: 1fr; }
  .pros-cons { grid-template-columns: 1fr; }
  .footer-container { grid-template-columns: 1fr 1fr; gap: 30px; }
  .hero { padding: 40px 20px; }
  .hero-search { flex-direction: column; }
}

@media (max-width: 480px) {
  .footer-container { grid-template-columns: 1fr; }
  .tools-grid { grid-template-columns: 1fr; }
}
