/* ============================================================
   blog.css — MotorGrid.in
   Shared styles for all guide pages.
   Extended for Best Mileage Bikes guide (April 2026).
   Extended for Best 125cc Bikes guide (April 2026).
   ============================================================ */

/* ── Container ── */
.blog-container {
  max-width: 1100px;
  margin: auto;
  padding: 24px 16px 64px;
  font-family: Arial, sans-serif;
  line-height: 1.75;
  color: #111;
}

/* ── Last updated badge ── */
.last-updated {
  display: inline-block;
  font-size: 13px;
  color: #666;
  background: #f4f4f4;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  padding: 3px 10px;
  margin-bottom: 18px;
}

/* ── Editorial note (trust signal) ── */
.editorial-note {
  background: #f9f9f9;
  border-left: 3px solid #e60023;
  border-radius: 0 6px 6px 0;
  padding: 12px 16px;
  font-size: 14px;
  color: #444;
  margin-bottom: 28px;
  line-height: 1.6;
}

/* ── Quick-pick summary box ── */
.quick-pick {
  background: #fff8f8;
  border: 1px solid #f5c0c0;
  border-radius: 8px;
  padding: 18px 20px;
  margin: 28px 0;
}
.quick-pick h3 {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #e60023;
  margin: 0 0 12px;
}
.quick-pick ul {
  margin: 0;
  padding-left: 18px;
}
.quick-pick li {
  font-size: 15px;
  color: #222;
  margin-bottom: 6px;
}

/* ── Title ── */
.blog-container h1 {
  font-size: 34px;
  line-height: 1.3;
  margin-bottom: 12px;
  color: #111;
}

/* ── Intro paragraphs ── */
.blog-container > p {
  font-size: 17px;
  color: #333;
}

/* ── Section titles (bike names + section heads) ── */
.blog-container h2 {
  font-size: 26px;
  margin-top: 48px;
  margin-bottom: 8px;
  font-weight: 700;
  color: #111;
}

/* ── Sub headings ── */
.blog-container h3 {
  font-size: 18px;
  margin-top: 20px;
  color: #111;
}

/* ── Body paragraphs ── */
.blog-container p {
  font-size: 16px;
  color: #333;
  margin-bottom: 14px;
}

/* ── Price / spec line ── */
.price-line {
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 12px;
  color: #000;
}

/* ── Images ── */
.blog-container img {
  width: 85%;
  max-width: 850px;
  margin: 18px auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}
.blog-container img:hover {
  transform: scale(1.02);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.15);
}

/* ── Pros / Cons grid ── */
.pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 16px 0 20px;
}
.pros,
.cons {
  border-radius: 6px;
  padding: 14px 16px;
}
.pros {
  background: #f0faf3;
  border: 1px solid #b8e5c4;
}
.cons {
  background: #fff5f5;
  border: 1px solid #f5c0c0;
}
.pros h4,
.cons h4 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 8px;
}
.pros h4 {
  color: #1e7e3a;
}
.cons h4 {
  color: #c0001a;
}
.pros ul,
.cons ul {
  margin: 0;
  padding-left: 16px;
}
.pros li,
.cons li {
  font-size: 14px;
  color: #333;
  margin-bottom: 4px;
}

/* ── Verdict highlight block ── */
.verdict-block {
  background: #111;
  color: #fff;
  border-radius: 6px;
  padding: 14px 18px;
  margin: 18px 0 10px;
  font-size: 15px;
  line-height: 1.6;
}
.verdict-block strong {
  color: #ffcc00;
}

/* ── Who should buy ── */
.who-buy {
  font-size: 15px;
  color: #333;
  margin-bottom: 6px;
}
.who-buy strong {
  color: #000;
}

/* ── Verdict highlight (inline) ── */
.blog-container strong {
  color: #000;
}

/* ── Divider between bike sections ── */
.blog-container h2:not(:first-of-type) {
  border-top: 1px solid #eee;
  padding-top: 30px;
}

/* ── Lists ── */
.blog-container ul {
  margin: 10px 0 16px 18px;
}
.blog-container li {
  margin-bottom: 6px;
  font-size: 16px;
  color: #333;
}

/* ── Links ── */
.blog-container a {
  color: #e60023;
  font-weight: 600;
  text-decoration: none;
}
.blog-container a:hover {
  text-decoration: underline;
}

/* ── CTA button ── */
.spec-btn {
  display: inline-block;
  margin-top: 12px;
  padding: 12px 22px;
  background: #e60023;
  color: #ffffff !important;
  font-weight: 700;
  font-size: 15px;
  border-radius: 6px;
  text-decoration: none;
  transition:
    background 0.25s ease,
    transform 0.25s ease,
    box-shadow 0.25s ease;
}
.spec-btn:visited,
.spec-btn:active,
.spec-btn:hover {
  color: #ffffff !important;
}
.spec-btn:hover {
  background: #c4001d;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(230, 0, 35, 0.3);
}

/* ── Comparison table ── */
.blog-container table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  font-size: 15px;
}
.blog-container th,
.blog-container td {
  padding: 12px 10px;
  border-bottom: 1px solid #ddd;
  text-align: left;
}
.blog-container th {
  font-weight: 700;
  background: #fafafa;
  color: #111;
}
.blog-container td:first-child {
  font-weight: 600;
  color: #111;
}
.blog-container tr:last-child td {
  border-bottom: none;
}

/* ── H2+ul section blocks (buying factors etc.) ── */
.blog-container h2 + ul {
  background: #fafafa;
  padding: 14px 14px 14px 32px;
  border-radius: 6px;
  border: 1px solid #efefef;
}

/* ── Alternatives cards ── */
.alt-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin: 16px 0 24px;
}
.alt-card img {
  width: 100%;
  max-width: 100%;
  height: 160px;
  object-fit: contain;
  border-radius: 6px 6px 0 0;
  margin: -16px -18px 14px;
  width: calc(100% + 36px);
  display: block;
  box-shadow: none;
  transition: none;
}
.alt-card img:hover {
  transform: none;
  box-shadow: none;
}
.alt-card {
  background: #fafafa;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  padding: 16px 18px;
}
.alt-card h4 {
  font-size: 16px;
  font-weight: 700;
  color: #111;
  margin: 0 0 4px;
}
.alt-card p {
  font-size: 14px;
  color: #555;
  margin: 0 0 10px;
}
.alt-card a {
  font-size: 14px;
}

/* ── Skip segment box ── */
.skip-segment {
  background: #fffbea;
  border: 1px solid #f5dfa0;
  border-radius: 8px;
  padding: 16px 18px;
  margin: 20px 0;
  font-size: 15px;
  color: #444;
  line-height: 1.65;
}
.skip-segment strong {
  color: #7a5000;
}

/* ── FAQ items ── */
.faq-item {
  border-bottom: 1px solid #eee;
  padding: 16px 0;
}
.faq-item:last-child {
  border-bottom: none;
}
.faq-item .faq-q {
  font-size: 16px;
  font-weight: 700;
  color: #111;
  margin-bottom: 6px;
}
.faq-item .faq-a {
  font-size: 15px;
  color: #444;
  margin: 0;
  line-height: 1.65;
}

/* ── Mobile ── */
@media (max-width: 600px) {
  .blog-container h1 {
    font-size: 26px;
  }
  .blog-container h2 {
    font-size: 22px;
  }
  .blog-container p {
    font-size: 15px;
  }
  .pros-cons {
    grid-template-columns: 1fr;
  }
  .alt-grid {
    grid-template-columns: 1fr;
  }
  .blog-container img {
    width: 100%;
  }
}

/* ============================================================
   EXTENSIONS — Best Mileage Bikes Guide
   Added below original rules. No original rules modified.
   ============================================================ */

/* ── Mileage visual bar (per-bike efficiency indicator) ── */
.mileage-bar-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 4px 0 20px;
  flex-wrap: wrap;
}
.mileage-bar-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #888;
  white-space: nowrap;
  min-width: 110px;
}
.mileage-bar {
  flex: 1;
  min-width: 160px;
  max-width: 420px;
  height: 10px;
  background: #ebebeb;
  border-radius: 100px;
  overflow: hidden;
}
.mileage-fill {
  height: 100%;
  background: linear-gradient(90deg, #c8860a 0%, #f5a623 100%);
  border-radius: 100px;
}
.mileage-bar-value {
  font-size: 14px;
  font-weight: 700;
  color: #b36a00;
  white-space: nowrap;
}

/* ── Mileage ranking table (at-a-glance section) ── */
.mileage-rank-table thead th,
.mileage-rank-table th {
  background: #111;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 11px 10px;
  text-align: left;
}
/* Top 3 rows highlighted */
.mileage-rank-table tr.rank-top td {
  background: #fffbf0;
}
.mileage-rank-table tr.rank-top:hover td {
  background: #fff3d6;
}
/* Mileage column bold amber */
.mileage-rank-table tr.rank-top td strong {
  color: #b36a00;
}
/* Override first-child bold so rank column is styled normally */
.mileage-rank-table td:first-child {
  font-weight: 400;
  color: #555;
  white-space: nowrap;
}
.mileage-rank-table tr.rank-top td:first-child {
  font-weight: 700;
  color: #111;
}

/* Row hover for all table rows */
.blog-container table tbody tr:hover td {
  background: #fafafa;
}
.mileage-rank-table tr.rank-top:hover td {
  background: #fff3d6;
}

/* ── Mobile tweaks for mileage guide elements ── */
@media (max-width: 600px) {
  .mileage-bar-wrap {
    gap: 8px;
  }
  .mileage-bar-label {
    min-width: auto;
    width: 100%;
  }
  .mileage-bar {
    max-width: 100%;
  }
  .mileage-rank-table,
  .blog-container table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* ============================================================
   EXTENSIONS — Best 125cc Bikes Guide
   Added below previous extensions. No prior rules modified.
   ============================================================ */

/* ── Segment category tag (shown below price line per bike) ── */
.segment-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: 4px;
  padding: 3px 10px;
  margin: 0 0 16px;
}
/* Commuter — blue */
.segment-commuter {
  background: #e8f4fd;
  color: #1565a7;
  border: 1px solid #b3d4f0;
}
/* Sport — red */
.segment-sport {
  background: #fff0f0;
  color: #b30000;
  border: 1px solid #f5b8b8;
}
/* Feature / feature-sport — green */
.segment-feature {
  background: #f0f9f0;
  color: #1a6b1a;
  border: 1px solid #b3deb3;
}

/* ── At-a-glance comparison table for 125cc guide ── */
.glance-table thead th,
.glance-table th {
  background: #111;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 11px 10px;
  text-align: left;
}
/* Highlighted rows (brand leaders per brand group) */
.glance-table tr.rank-top td {
  background: #f5f9ff;
}
.glance-table tr.rank-top:hover td {
  background: #e8f1fc;
}
/* First column inherits bold from global rule — keep it readable */
.glance-table td:first-child {
  font-weight: 600;
  color: #111;
}

/* ── Mobile: glance table scrolls horizontally ── */
@media (max-width: 600px) {
  .glance-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* ============================================================
   PATCH — Best Bikes Under ₹1.5 Lakh Guide
   Append this block below the existing blog.css content.
   No existing rules are modified.
   ============================================================ */

/* ── Segment filter tab bar ── */
.segment-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 28px 0 24px;
}

.filter-btn {
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 600;
  border: 1.5px solid #ddd;
  border-radius: 100px;
  background: #fff;
  color: #444;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: Arial, sans-serif;
  letter-spacing: 0.01em;
}

.filter-btn:hover {
  border-color: #e60023;
  color: #e60023;
}

.filter-btn.active {
  background: #e60023;
  border-color: #e60023;
  color: #fff;
}

/* ── Budget range bar ── */
.budget-range-bar {
  background: #fafafa;
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  padding: 20px 24px;
  margin: 24px 0 32px;
}

.budget-range-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #888;
  margin-bottom: 14px;
}

.budget-range-track {
  position: relative;
  height: 8px;
  background: #e5e5e5;
  border-radius: 100px;
  margin: 20px 0 28px;
}

.budget-fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 100%;
  border-radius: 100px;
  background: linear-gradient(90deg, #1a7a3a 0%, #e60023 100%);
}

.budget-marker {
  position: absolute;
  top: -20px;
  transform: translateX(-50%);
}

.budget-marker span {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #333;
  white-space: nowrap;
}

.budget-marker::after {
  content: "";
  display: block;
  width: 2px;
  height: 28px;
  background: #bbb;
  margin: 4px auto 0;
}

.budget-range-labels {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #888;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ── Section divider with label ── */
.section-divider {
  display: flex;
  align-items: center;
  margin: 48px 0 0;
  gap: 16px;
}

.section-divider::before,
.section-divider::after {
  content: "";
  flex: 1;
  height: 2px;
  background: #111;
}

.section-divider::after {
  background: #eee;
}

.section-divider-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #fff;
  background: #111;
  padding: 5px 14px;
  border-radius: 100px;
  white-space: nowrap;
}

/* ── Brand service network grid ── */
.brand-service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin: 20px 0 28px;
}

.brand-service-card {
  background: #fafafa;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  padding: 14px 16px;
}

.brand-service-name {
  font-size: 15px;
  font-weight: 700;
  color: #111;
  margin-bottom: 8px;
}

.brand-service-bar-wrap {
  height: 7px;
  background: #e5e5e5;
  border-radius: 100px;
  overflow: hidden;
  margin-bottom: 6px;
}

.brand-service-bar {
  height: 100%;
  background: linear-gradient(90deg, #e60023 0%, #ff6b6b 100%);
  border-radius: 100px;
  transition: width 0.6s ease;
}

.brand-service-label {
  font-size: 12px;
  color: #777;
}

/* ── Table scroll hint on mobile ── */
.table-scroll-hint {
  display: none;
  font-size: 12px;
  color: #aaa;
  text-align: center;
  margin-bottom: 8px;
  font-style: italic;
}

/* ── Glance table: override first-child rule for rank column ── */
.glance-table td:first-child {
  font-weight: 600;
  color: #111;
}

/* ── Price highlight in comparison table ── */
.glance-table td:nth-child(2) {
  font-weight: 700;
  color: #1a7a3a;
  white-space: nowrap;
}

/* ── Mileage column highlight in comparison table ── */
.glance-table td:nth-child(4) {
  font-weight: 600;
  color: #b36a00;
  white-space: nowrap;
}

/* ── Zebra striping for comparison table ── */
.glance-table tbody tr:nth-child(even) td {
  background: #fcfcfc;
}

.glance-table tbody tr:hover td {
  background: #fff8f8;
}

.glance-table tr.rank-top td {
  background: #f5f9ff;
}

.glance-table tr.rank-top:hover td {
  background: #e8f1fc;
}

/* ── Mobile overrides ── */
@media (max-width: 600px) {
  .segment-filter {
    gap: 6px;
  }

  .filter-btn {
    padding: 7px 14px;
    font-size: 13px;
  }

  .budget-range-bar {
    padding: 16px 14px;
  }

  .budget-range-labels {
    font-size: 10px;
  }

  .section-divider-label {
    font-size: 10px;
    padding: 4px 10px;
  }

  .brand-service-grid {
    grid-template-columns: 1fr 1fr;
  }

  .table-scroll-hint {
    display: block;
  }

  .glance-table,
  .mileage-rank-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    font-size: 13px;
  }
}

@media (max-width: 400px) {
  .brand-service-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   PATCH — Best Bikes for Daily Commuting Guide
   Append this block below the existing blog.css content.
   No existing rules are modified.
   ============================================================ */

/* ── Commute score bar group (per-bike ratings) ── */
.commute-score-bar-group {
  background: #fafafa;
  border: 1px solid #efefef;
  border-radius: 8px;
  padding: 14px 18px;
  margin: 4px 0 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.commute-score-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.commute-score-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #777;
  min-width: 108px;
  white-space: nowrap;
}

.commute-score-track {
  flex: 1;
  height: 8px;
  background: #e5e5e5;
  border-radius: 100px;
  overflow: hidden;
}

.commute-score-fill {
  height: 100%;
  border-radius: 100px;
}

.fill-green {
  background: linear-gradient(90deg, #1e7e3a 0%, #43c068 100%);
}
.fill-blue {
  background: linear-gradient(90deg, #1565a7 0%, #4da3e8 100%);
}
.fill-orange {
  background: linear-gradient(90deg, #b36a00 0%, #f5a623 100%);
}
.fill-red {
  background: linear-gradient(90deg, #b30000 0%, #e84040 100%);
}

.commute-score-val {
  font-size: 13px;
  font-weight: 700;
  color: #333;
  min-width: 26px;
  text-align: right;
}

/* ── Commute tier divider ── */
.commute-tier-divider {
  margin: 52px 0 0;
  text-align: center;
}

.commute-tier-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 7px 20px;
  border-radius: 100px;
  border: 2px solid transparent;
}

.commute-tier-badge.budget {
  background: #f0faf3;
  color: #1e7e3a;
  border-color: #b8e5c4;
}

.commute-tier-badge.mid {
  background: #e8f4fd;
  color: #1565a7;
  border-color: #b3d4f0;
}

.commute-tier-badge.upper {
  background: #fff8ee;
  color: #b36a00;
  border-color: #f5d9a8;
}

.commute-tier-badge.premium {
  background: #fff0f0;
  color: #b30000;
  border-color: #f5b8b8;
}

/* ── Commute legend box ── */
.commute-legend {
  background: #fafafa;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  padding: 16px 20px;
  margin: 24px 0 28px;
}

.commute-legend-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #888;
  margin-bottom: 12px;
}

.commute-legend-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 8px 20px;
}

.commute-legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #444;
}

.commute-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.dot-green {
  background: #1e7e3a;
}
.dot-blue {
  background: #1565a7;
}
.dot-orange {
  background: #b36a00;
}
.dot-red {
  background: #b30000;
}

/* ── Monthly cost table: highlight lowest-cost rows ── */
.mileage-rank-table tr.rank-top td:nth-child(5) {
  color: #1e7e3a;
  font-weight: 700;
}

/* ── Mobile overrides ── */
@media (max-width: 600px) {
  .commute-score-label {
    min-width: 90px;
    font-size: 11px;
  }

  .commute-score-bar-group {
    padding: 12px 14px;
  }

  .commute-legend-grid {
    grid-template-columns: 1fr 1fr;
  }

  .commute-tier-badge {
    font-size: 10px;
    padding: 6px 14px;
    letter-spacing: 0.07em;
  }
}

@media (max-width: 400px) {
  .commute-legend-grid {
    grid-template-columns: 1fr;
  }
}
