/* =============================================================
 * bs-crash-section-parity.css
 * --------------------------------------------------------------
 * Agent L (rule #30 dosya sahipliği)
 * Marker: AGENT-L-OWNED — başka agent dokunmaz
 * --------------------------------------------------------------
 * BS-paralel "HIZLI KAZANC OYUNLARI" (crash) section parity.
 *
 * Bu dosya yalnızca crash section'a özgü farkları kapsar.
 * Ortak kart yüzeyi (background, br, hover, active) →
 *   home-card-parity.css (Agent A2)
 * Ortak kart boyut + scroll davranışı →
 *   theme-robinbet-mobile.css (line 10454+)
 *
 * Kapsam (Agent L):
 *   1. Crash section spacing (margin-top BS-paralel)
 *   2. Lightning bolt icon (.bs-crash-icon) renk + glow
 *   3. Crash-specific hover micro-interaction (lightning shimmer)
 *   4. Optional "POPÜLER" badge (Aviator/Spaceman için)
 *   5. Hızlı kazanç card'larına özel yumuşak gradient overlay
 *
 * Specificity: html.mobile-root body.mobile-site …
 *   theme-robinbet-mobile.css'in 10457 satırındaki kuralları
 *   override etmek için aynı specificity + !important.
 * --------------------------------------------------------------
 * BS reference (canonical 9 crash games — Drakon CDN'den):
 *   1. Aviator       (spribe)
 *   2. Spaceman      (pragmatic)
 *   3. JetX          (smartsoft)
 *   4. CricketX      (smartsoft)
 *   5. Goal          (spribe)
 *   6. Aviatrix      (aviatrix)
 *   7. Hi-Lo         (spribe)
 *   8. Mines         (tada)
 *   9. Penalty       (galaxsys)
 * --------------------------------------------------------------
 * Versiyon: 1.0  •  Tarih: 2026-04-28
 * Override registry: AI_USER_OVERRIDES.md#crash-section-bs-paralel-2026-04-28
 * ============================================================= */

/* -----------------------------------------------------------
 * 1) Section header refinement — crash specific
 *    BS'de "HIZLI KAZANÇ" header'ı .bs-live-section'la
 *    aynı flex/spacing kullanır ama icon farklı (lightning).
 * ----------------------------------------------------------- */

html.mobile-root body.mobile-site section.bs-crash-section,
html.mobile-root body.mobile-site .bs-crash-section {
  /* Section dikey ayrım — BS-paralel 18px */
  margin-top: 18px !important;
  padding: 10px 0 !important;
  display: block !important;
}

html.mobile-root body.mobile-site section.bs-crash-section .bs-live-header,
html.mobile-root body.mobile-site .bs-crash-section .bs-live-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 0 12px 8px !important;
  margin: 0 !important;
}

html.mobile-root body.mobile-site section.bs-crash-section .bs-live-header-left,
html.mobile-root body.mobile-site .bs-crash-section .bs-live-header-left {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
}

/* -----------------------------------------------------------
 * 2) Lightning bolt icon — crash-only ornament
 *    BS'de canlı casino "kırmızı dot" eşdeğeri burada
 *    "altın yıldırım" — animated glow ile dikkat çeker.
 * ----------------------------------------------------------- */

html.mobile-root body.mobile-site .bs-crash-section .bs-crash-icon {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 18px !important;
  height: 18px !important;
  color: #f0d060 !important;
  font-size: 16px !important;
  margin-right: 6px !important;
  /* Yumuşak glow — BS dot kırmızı pulse'a paralel */
  filter: drop-shadow(0 0 4px rgba(240, 208, 96, 0.55)) !important;
  /* GPU layer promote → animation jank yok (rule reduced motion fallback) */
  will-change: filter, transform;
  transform: translateZ(0);
  animation: bs-crash-bolt-glow 2.4s ease-in-out infinite;
}

@keyframes bs-crash-bolt-glow {
  0%, 100% {
    filter: drop-shadow(0 0 3px rgba(240, 208, 96, 0.40));
    transform: translateZ(0) scale(1);
  }
  50% {
    filter: drop-shadow(0 0 8px rgba(240, 208, 96, 0.85));
    transform: translateZ(0) scale(1.06);
  }
}

@media (prefers-reduced-motion: reduce) {
  html.mobile-root body.mobile-site .bs-crash-section .bs-crash-icon {
    animation: none !important;
    filter: drop-shadow(0 0 4px rgba(240, 208, 96, 0.55)) !important;
  }
}

/* -----------------------------------------------------------
 * 3) Section title — italic kaldırıldı, BS-paralel weight
 * ----------------------------------------------------------- */

html.mobile-root body.mobile-site section.bs-crash-section .bs-live-title,
html.mobile-root body.mobile-site .bs-crash-section .bs-live-title {
  font-size: 14px !important;
  font-weight: 600 !important;
  font-style: normal !important;
  color: rgba(255, 255, 255, 0.92) !important;
  letter-spacing: 0.2px !important;
  padding: 0 !important;
  margin: 0 !important;
  text-transform: uppercase;
}

/* -----------------------------------------------------------
 * 4) "Tümünü Gör" link — crash header sağ
 * ----------------------------------------------------------- */

html.mobile-root body.mobile-site .bs-crash-section .bs-live-viewall {
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  font-size: 12px !important;
  color: rgba(255, 255, 255, 0.70) !important;
  text-decoration: none !important;
  font-weight: 500 !important;
  transition: color 0.18s ease !important;
}

html.mobile-root body.mobile-site .bs-crash-section .bs-live-viewall:hover,
html.mobile-root body.mobile-site .bs-crash-section .bs-live-viewall:focus-visible {
  color: rgba(240, 208, 96, 0.95) !important;
}

html.mobile-root body.mobile-site .bs-crash-section .bs-live-viewall i {
  font-size: 10px !important;
  margin-left: 2px !important;
}

/* -----------------------------------------------------------
 * 5) Crash card grid — horizontal scroll BS-paralel
 *    Üst kuralla (theme-robinbet 10495+) aynı layout fakat
 *    crash için snap-mandatory eklenir → finger-flick UX
 * ----------------------------------------------------------- */

html.mobile-root body.mobile-site section.bs-crash-section .bs-live-cards,
html.mobile-root body.mobile-site .bs-crash-section .bs-live-cards {
  display: flex !important;
  flex-wrap: nowrap !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  gap: 8px !important;
  padding: 0 8px !important;
  -webkit-overflow-scrolling: touch !important;
  scrollbar-width: none !important;
  /* BS-paralel scroll snap → kart sınırlarına otururum */
  scroll-snap-type: x mandatory !important;
  scroll-padding-left: 8px !important;
  /* iOS bounce contain (rule #116) */
  overscroll-behavior-x: contain !important;
}

html.mobile-root body.mobile-site .bs-crash-section .bs-live-cards::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

html.mobile-root body.mobile-site section.bs-crash-section .bs-live-cards .game-item,
html.mobile-root body.mobile-site .bs-crash-section .bs-live-cards .game-item {
  flex: 0 0 140px !important;
  width: 140px !important;
  min-width: 140px !important;
  scroll-snap-align: start !important;
  scroll-snap-stop: normal !important;
  position: relative;
}

/* -----------------------------------------------------------
 * 6) Crash-specific image overlay — gradient bottom fade
 *    BS aviator/spaceman card'larında alt kısımda dark fade
 *    ile oyun adı görünmez yapılır. Burada hafif gradient.
 * ----------------------------------------------------------- */

html.mobile-root body.mobile-site .bs-crash-section .bs-live-cards .game-item::after {
  content: '' !important;
  position: absolute !important;
  left: 0;
  right: 0;
  bottom: 0;
  height: 28%;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.35) 80%, rgba(0,0,0,0.55) 100%);
  pointer-events: none !important;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
  opacity: 0.85;
  transition: opacity 0.18s ease;
}

html.mobile-root body.mobile-site .bs-crash-section .bs-live-cards .game-item:hover::after,
html.mobile-root body.mobile-site .bs-crash-section .bs-live-cards .game-item:focus-within::after {
  opacity: 1;
}

/* -----------------------------------------------------------
 * 7) "POPÜLER" badge — BS Aviator/Spaceman için top-left
 *    HTML markup içermez (PHP render_game_card override yok).
 *    Eğer ileride kart üzerine .game-badge eklenirse style hazır.
 * ----------------------------------------------------------- */

html.mobile-root body.mobile-site .bs-crash-section .bs-live-cards .game-item .game-badge {
  position: absolute !important;
  top: 6px;
  left: 6px;
  padding: 2px 6px !important;
  font-size: 9px !important;
  font-weight: 700 !important;
  color: #1a1a1a !important;
  background: linear-gradient(135deg, #ffd45e 0%, #f0a830 100%) !important;
  border-radius: 3px !important;
  letter-spacing: 0.4px !important;
  text-transform: uppercase;
  z-index: 2;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25) !important;
  pointer-events: none;
}

html.mobile-root body.mobile-site .bs-crash-section .bs-live-cards .game-item .game-badge.is-new {
  background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%) !important;
  color: #0a0a0a !important;
}

/* -----------------------------------------------------------
 * 8) Game image — webp/png consistent rendering
 * ----------------------------------------------------------- */

html.mobile-root body.mobile-site .bs-crash-section .bs-live-cards .game-item img {
  width: 140px !important;
  height: 188px !important;
  object-fit: cover !important;
  border-radius: 10px !important;
  display: block !important;
  /* Crisp edges (no blur on translateZ during scroll) */
  image-rendering: -webkit-optimize-contrast !important;
  image-rendering: crisp-edges !important;
  /* No filter (theme might apply blur on hover globally) */
  filter: none !important;
}

/* -----------------------------------------------------------
 * 9) Section divider — crash → footer transition
 *    BS'de footer'a girişte 16-18px boşluk var.
 * ----------------------------------------------------------- */

html.mobile-root body.mobile-site .bs-crash-section + footer,
html.mobile-root body.mobile-site .bs-crash-section + .footer-mobile,
html.mobile-root body.mobile-site .bs-crash-section + .footer-bc {
  margin-top: 18px !important;
}

/* -----------------------------------------------------------
 * 10) A11y — focus ring crash-paralel altın
 *     Theme-bleed (rule #117) sadece crash section'da
 *     allowed: bilinçli altın (BS-paralel renk).
 * ----------------------------------------------------------- */

html.mobile-root body.mobile-site .bs-crash-section .game-item:focus-visible {
  outline: 2px solid rgba(240, 208, 96, 0.85) !important;
  outline-offset: 2px !important;
}

html.mobile-root body.mobile-site .bs-crash-section .bs-live-viewall:focus-visible {
  outline: 2px solid rgba(240, 208, 96, 0.85) !important;
  outline-offset: 2px !important;
  border-radius: 3px;
}
