/* ============================================
   MobilePick India - AI-Optimized Review Site
   Mobile-first, clean, fast-loading CSS
   ============================================ */

:root {
  --primary: #1a73e8;
  --primary-dark: #1557b0;
  --accent: #ff6d00;
  --bg: #f8f9fa;
  --card-bg: #ffffff;
  --text: #202124;
  --text-secondary: #5f6368;
  --border: #dadce0;
  --success: #0d904f;
  --rating-star: #f4b400;
  --max-width: 1200px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* --- HEADER --- */
.site-header {
  background: var(--card-bg);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
}
.logo span { color: var(--accent); }
nav a {
  color: var(--text-secondary);
  text-decoration: none;
  margin-left: 1.5rem;
  font-weight: 500;
  transition: color 0.2s;
}
nav a:hover { color: var(--primary); }

/* --- CONTAINER --- */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1rem; }

/* --- HERO --- */
.hero {
  background: linear-gradient(135deg, #1a73e8 0%, #0d47a1 100%);
  color: #fff;
  padding: 3rem 0;
  text-align: center;
}
.hero h1 { font-size: 2rem; margin-bottom: 0.5rem; }
.hero p { font-size: 1.1rem; opacity: 0.9; max-width: 700px; margin: 0 auto; }

/* --- ARTICLE CARDS --- */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.5rem;
  padding: 2rem 0;
}
.article-card {
  background: var(--card-bg);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: box-shadow 0.3s, transform 0.2s;
}
.article-card:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}
.card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: #e8eaed;
}
.card-body { padding: 1.25rem; }
.card-category {
  display: inline-block;
  background: #e8f0fe;
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}
.card-body h2 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}
.card-body h2 a { color: var(--text); text-decoration: none; }
.card-body h2 a:hover { color: var(--primary); }
.card-meta {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
}
.card-excerpt {
  font-size: 0.95rem;
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* --- ARTICLE PAGE --- */
.article-page { padding: 2rem 0; }
.article-content {
  max-width: 800px;
  margin: 0 auto;
  background: var(--card-bg);
  border-radius: 12px;
  padding: 2rem;
  border: 1px solid var(--border);
}
.article-content h1 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}
.article-meta {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}
.article-meta span { margin-right: 1rem; }

/* Answer-first box - KEY AEO ELEMENT */
.answer-box {
  background: #e8f5e9;
  border-left: 4px solid var(--success);
  padding: 1.25rem;
  border-radius: 0 8px 8px 0;
  margin-bottom: 2rem;
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.6;
}
.answer-box strong { color: var(--success); }

/* Section headings as questions - KEY AEO ELEMENT */
.article-content h2 {
  font-size: 1.35rem;
  margin: 2rem 0 1rem;
  color: var(--text);
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.article-content h3 {
  font-size: 1.1rem;
  margin: 1.5rem 0 0.75rem;
  color: var(--text);
}

/* Product cards within articles */
.product-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem;
  margin: 1.25rem 0;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  flex-wrap: wrap;
}
.product-rank {
  background: var(--primary);
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}
.product-info { flex: 1; min-width: 200px; }
.product-info h3 { margin: 0 0 0.25rem; font-size: 1.1rem; }
.product-price {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--success);
  margin-bottom: 0.5rem;
}
.product-specs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.5rem;
  margin: 0.75rem 0;
}
.spec-item {
  font-size: 0.85rem;
  color: var(--text-secondary);
}
.spec-item strong { color: var(--text); display: block; font-size: 0.75rem; text-transform: uppercase; }

/* Pros/Cons */
.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 0.75rem 0; }
.pros h4 { color: var(--success); margin-bottom: 0.5rem; }
.cons h4 { color: #d93025; margin-bottom: 0.5rem; }
.pros li, .cons li { font-size: 0.9rem; margin-bottom: 0.25rem; list-style: none; padding-left: 1.25rem; position: relative; }
.pros li::before { content: '✔'; position: absolute; left: 0; color: var(--success); font-weight: 700; }
.cons li::before { content: 'x'; position: absolute; left: 0; color: #d93025; font-weight: 700; }

/* Buy button */
.buy-btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 0.6rem 1.5rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.2s;
  margin-top: 0.5rem;
}
.buy-btn:hover { background: #e65100; }

/* Comparison table */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.9rem;
  overflow-x: auto;
  display: block;
}
.comparison-table th, .comparison-table td {
  padding: 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.comparison-table th {
  background: var(--bg);
  font-weight: 600;
  position: sticky;
  top: 0;
}
.comparison-table tr:hover { background: #f1f3f4; }

/* FAQ Section - KEY AEO ELEMENT */
.faq-section { margin: 2rem 0; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 0.75rem;
  overflow: hidden;
}
.faq-question {
  width: 100%;
  background: var(--bg);
  border: none;
  padding: 1rem 1.25rem;
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text);
}
.faq-question::after { content: '+'; font-size: 1.25rem; color: var(--primary); transition: transform 0.3s; }
.faq-item.active .faq-question::after { content: 'minus'; }
.faq-answer {
  padding: 0 1.25rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}
.faq-item.active .faq-answer {
  max-height: 500px;
  padding: 0 1.25rem 1rem;
}

/* Author box - E-E-A-T signal */
.author-box {
  display: flex;
  gap: 1rem;
  align-items: center;
  background: var(--bg);
  padding: 1.25rem;
  border-radius: 10px;
  margin: 2rem 0;
}
.author-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.25rem;
  flex-shrink: 0;
}
.author-info h4 { margin-bottom: 0.15rem; }
.author-info p { font-size: 0.85rem; color: var(--text-secondary); }

/* Breadcrumb */
.breadcrumb {
  padding: 0.75rem 0;
  font-size: 0.85rem;
  color: var(--text-secondary);
}
.breadcrumb a { color: var(--primary); text-decoration: none; }
.breadcrumb span { margin: 0 0.5rem; }

/* Footer */
.site-footer {
  background: #202124;
  color: #9aa0a6;
  padding: 2rem 0;
  margin-top: 3rem;
  text-align: center;
  font-size: 0.9rem;
}
.site-footer a { color: #8ab4f8; text-decoration: none; }

/* Last updated badge */
.last-updated {
  display: inline-block;
  background: #fff3e0;
  color: #e65100;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
}

/* Responsive */
@media (max-width: 768px) {
  .hero h1 { font-size: 1.5rem; }
  .articles-grid { grid-template-columns: 1fr; }
  .article-content { padding: 1.25rem; }
  .article-content h1 { font-size: 1.4rem; }
  .product-card { flex-direction: column; }
  .pros-cons { grid-template-columns: 1fr; }
  nav { display: none; }
}
