/*
 * BossLevel shared SEO content styles.
 *
 * Every game page has SEO content blocks below the playable area —
 * "How to Play", "Tips & Strategies", "You Might Also Like", etc. — each
 * marked up as <section class="seo-section">. Until this file existed, every
 * game inlined its own .seo-section CSS, drifting in colour, padding, fonts,
 * and especially in whether the area behind the cards was light or whether
 * the dark game body-bg leaked through.
 *
 * This file is the single source of truth, paralleling /assets/footer.css and
 * /assets/ads.css. Per-game inline .seo-section* rules should be swept out;
 * this file wins by being loaded after them and matching every selector.
 *
 * Layout philosophy:
 *   - The outer wrapper (.seo-wrapper / -inner / .seo-inner / .seo-inline) is
 *     a full-width light-gray strip. It seals off the game body-bg so dark
 *     themes don't leak into the bottom area.
 *   - Each .seo-section card is white, centred, capped at 800px, with subtle
 *     border + radius.
 *   - The "Similar Games" grid + cards use the canonical card pattern.
 *
 * The wrapper bg (#F8F9FA) intentionally matches /assets/ads.css and
 * /assets/footer.css, so the entire bottom area (SEO → banner → footer) reads
 * as one continuous gray surface broken by 1px borders only.
 */

/* ---------------------------------------------------------------------------
 * Outer wrapper — full width, light gray.
 * Covers all four wrapper variants observed across 34 games:
 *   .seo-wrapper          (25 games — dominant)
 *   .seo-wrapper-inner    (5 games)
 *   .seo-inner            (3 games)
 *   .seo-inline           (1 game — color-switch-reflex)
 */
.seo-wrapper,
.seo-wrapper-inner,
.seo-inner,
.seo-inline {
  display: block;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 2.5rem 1.5rem 1rem;
  background: #F8F9FA;
  color: #1A1A2E;
  font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.7;
  box-sizing: border-box;
}

/* ---------------------------------------------------------------------------
 * SEO section card — white panel with thin border + radius.
 */
.seo-section {
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 16px;
  padding: 1.5rem 1.5rem 1.25rem;
  margin: 0 auto 1.5rem;
  max-width: 800px;
}

.seo-section:last-child {
  margin-bottom: 0;
}

.seo-section h2 {
  font-family: 'Fredoka', 'Nunito', sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: #1A1A2E;
  margin: 0 0 1rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  line-height: 1.3;
}

.seo-section p {
  color: #4B5563;
  font-size: 0.95rem;
  line-height: 1.7;
  margin: 0 0 1rem 0;
}

.seo-section p:last-child {
  margin-bottom: 0;
}

.seo-section ul {
  margin: 0;
  padding-left: 1.25rem;
  color: #4B5563;
  line-height: 1.8;
  list-style: disc;
}

.seo-section li {
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.seo-section li:last-child {
  margin-bottom: 0;
}

.seo-section strong {
  color: #1A1A2E;
  font-weight: 700;
}

.seo-section a {
  color: #FF6B4A;
  text-decoration: none;
  transition: color 0.15s ease;
}

.seo-section a:hover {
  text-decoration: underline;
  color: #E85A3A;
}

/* ---------------------------------------------------------------------------
 * "Similar Games" grid + cards.
 * Used in 33 of 34 games. Markup pattern is consistent:
 *   <div class="similar-games">
 *     <a class="similar-game-card" href="/games/...">
 *       <div class="similar-game-icon">[emoji]</div>
 *       <div class="similar-game-info">
 *         <strong>Title</strong>
 *         <span>Category · Difficulty</span>
 *       </div>
 *     </a>
 *   </div>
 */
.similar-games {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.similar-game-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.similar-game-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border-color: #D1D5DB;
}

.similar-game-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
  background: #F3F4F6;
}

.similar-game-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 0.125rem;
}

.similar-game-info strong {
  color: #1A1A2E;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.similar-game-info span {
  color: #6B7280;
  font-size: 0.8125rem;
}

/* ---------------------------------------------------------------------------
 * Mobile tuning.
 */
@media (max-width: 640px) {
  .seo-wrapper,
  .seo-wrapper-inner,
  .seo-inner,
  .seo-inline {
    padding: 1.75rem 1rem 0.75rem;
  }

  .seo-section {
    padding: 1.25rem 1.25rem 1rem;
    margin-bottom: 1rem;
    border-radius: 14px;
  }

  .seo-section h2 {
    font-size: 1.125rem;
  }
}
