/* ==========================================================================
   KickAssCars.com - Mod Guide Pages
   SEO-optimized platform mod guide styling
   ========================================================================== */

/* ── Hero ──────────────────────────────────────────────────────────────── */

.mod-guide {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 16px 60px;
}

.mod-hero {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 24px;
  background: var(--bg-card);
  min-height: 200px;
}

.mod-hero-img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
  opacity: 0.4;
}

.mod-hero-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px;
  background: linear-gradient(transparent, rgba(0,0,0,0.85));
}

.mod-hero h1 {
  font-size: 1.8rem;
  margin: 0 0 6px;
  color: var(--text);
}

.mod-hero-subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0 0 16px;
}

.mod-hero-stats {
  display: flex;
  gap: 24px;
}

.mod-stat {
  display: flex;
  flex-direction: column;
}

.mod-stat-value {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary);
}

.mod-stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ── Quick Nav ─────────────────────────────────────────────────────────── */

.mod-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 32px;
  padding: 12px;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}

.mod-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  font-size: 0.85rem;
  color: var(--text-muted);
  background: var(--surface);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: all 0.15s;
}

.mod-nav-link:hover {
  color: var(--text);
  background: var(--bg-hover);
}

.mod-nav-count {
  font-size: 0.7rem;
  background: var(--border);
  padding: 1px 6px;
  border-radius: 10px;
  color: var(--text-muted);
}

/* ── Intro ─────────────────────────────────────────────────────────────── */

.mod-intro {
  margin-bottom: 40px;
  line-height: 1.7;
  color: var(--text-muted);
  font-size: 1rem;
}

.mod-intro h2 {
  color: var(--text);
  font-size: 1.4rem;
  margin: 0 0 12px;
}

.mod-intro p {
  margin: 0 0 10px;
}

.mod-cta {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.mod-cta:hover {
  text-decoration: underline;
}

/* ── Category Sections ─────────────────────────────────────────────────── */

.mod-category {
  margin-bottom: 40px;
  scroll-margin-top: 80px;
}

.mod-category h2 {
  font-size: 1.3rem;
  margin: 0 0 6px;
  color: var(--text);
  border-bottom: 2px solid var(--primary);
  padding-bottom: 8px;
}

.mod-category > .text-muted {
  font-size: 0.9rem;
  margin: 0 0 16px;
}

/* ── Parts Grid ────────────────────────────────────────────────────────── */

.mod-parts-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}

.mod-part-card {
  display: flex;
  gap: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  transition: border-color 0.15s;
}

.mod-part-card:hover {
  border-color: var(--border-strong);
}

.mod-part-img {
  width: 100px;
  height: 100px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
}

.mod-part-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.mod-part-info {
  flex: 1;
  min-width: 0;
}

.mod-part-info h3 {
  font-size: 1rem;
  margin: 0 0 4px;
  color: var(--text);
}

.mod-part-pn {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-subtle);
  margin-bottom: 8px;
}

.mod-part-gains {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}

.mod-gain {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 600;
}

.mod-gain-hp {
  background: rgba(230, 57, 70, 0.15);
  color: var(--primary);
}

.mod-gain-tq {
  background: rgba(0, 168, 232, 0.15);
  color: var(--accent);
}

.mod-part-price {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.mod-part-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0 0 8px;
  line-height: 1.5;
}

.mod-part-notes {
  font-size: 0.8rem;
  color: var(--text-subtle);
  font-style: italic;
  margin-bottom: 8px;
}

.mod-buy-btn {
  display: inline-block;
  padding: 6px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  background: var(--primary);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background 0.15s;
}

.mod-buy-btn:hover {
  background: var(--primary-hover);
}

/* ── CTA Section ───────────────────────────────────────────────────────── */

.mod-cta-section {
  text-align: center;
  padding: 40px 24px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.mod-cta-section h2 {
  font-size: 1.5rem;
  margin: 0 0 8px;
  color: var(--text);
}

.mod-cta-section p {
  color: var(--text-muted);
  margin: 0 0 20px;
}

/* ── Platform Index Grid ───────────────────────────────────────────────── */

.mod-platforms-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.mod-platform-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  text-decoration: none;
  transition: border-color 0.15s, transform 0.15s;
}

.mod-platform-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}

.mod-platform-img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}

.mod-platform-info {
  padding: 14px;
}

.mod-platform-info h2 {
  font-size: 1.1rem;
  margin: 0 0 4px;
  color: var(--text);
}

.mod-platform-specs {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.mod-platform-stats {
  display: flex;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--primary);
  font-weight: 600;
}

/* ── Responsive ────────────────────────────────────────────────────────── */

@media (min-width: 640px) {
  .mod-parts-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .mod-part-card {
    flex-direction: column;
  }

  .mod-part-img {
    width: 100%;
    height: 140px;
  }
}

@media (min-width: 900px) {
  .mod-hero h1 {
    font-size: 2.2rem;
  }

  .mod-hero-img {
    height: 340px;
  }
}

@media (max-width: 480px) {
  .mod-hero-stats {
    gap: 16px;
  }

  .mod-stat-value {
    font-size: 1.1rem;
  }

  .mod-part-img {
    width: 70px;
    height: 70px;
  }

  .mod-nav {
    gap: 4px;
    padding: 8px;
  }

  .mod-nav-link {
    font-size: 0.8rem;
    padding: 4px 8px;
  }
}
