/**
 * sans_oyunlari.css - aahaber.com "Şans Oyunları Sonuçları" Tasarım Sistemi
 * Çılgın Sayısal Loto, Süper Loto, Şans Topu, On Numara ve Milli Piyango
 * Vanilla CSS - Tam Dark / Light Mode uyumlu modern dashboard.
 */

/* ==========================================================================
   1. GENEL SAYFA VE WRAPPER
   ========================================================================== */
.so-page-container {
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3.5rem;
  box-sizing: border-box;
}

/* Breadcrumb */
.so-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted, #64748b);
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}
.so-breadcrumb a {
  color: var(--text-muted, #64748b);
  text-decoration: none;
  transition: color 0.15s ease;
}
.so-breadcrumb a:hover {
  color: var(--primary, #7c3aed);
}
.so-breadcrumb span.sep {
  opacity: 0.5;
}
.so-breadcrumb span.current {
  color: var(--text-main, #0f172a);
  font-weight: 600;
}

/* ==========================================================================
   2. ÜST BAŞLIK & CANLI ROZET ŞERİDİ
   ========================================================================== */
.so-header-banner {
  margin-bottom: 1.75rem;
}
.so-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}
.so-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: #10b981;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.so-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: soPulse 1.8s infinite;
}
@keyframes soPulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1.15); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}
.so-source-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8rem;
  color: var(--text-muted, #64748b);
  background: var(--bg-card, #ffffff);
  border: 1px solid var(--border-color, #e2e8f0);
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
}

.so-main-title {
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--text-main, #0f172a);
  margin: 0 0 0.5rem 0;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.so-title-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, #7c3aed, #4f46e5);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
}
.so-main-subtitle {
  font-size: 1rem;
  color: var(--text-muted, #64748b);
  max-width: 920px;
  margin: 0;
  line-height: 1.55;
}

/* ==========================================================================
   3. OYUN SEÇİM KARTLARI / TABLARI (GAME SELECTOR CARDS)
   ========================================================================== */
.so-game-nav {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}
@media (max-width: 1080px) {
  .so-game-nav {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 680px) {
  .so-game-nav {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

.so-game-btn {
  background: var(--bg-card, #ffffff);
  border: 1.5px solid var(--border-color, #e2e8f0);
  border-radius: 14px;
  padding: 14px 16px;
  text-decoration: none;
  color: var(--text-main, #0f172a);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
  cursor: pointer;
}
.so-game-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.06);
  border-color: rgba(124, 58, 237, 0.3);
}
.so-game-btn.active {
  border-color: var(--game-theme-color, #7c3aed);
  background: var(--game-theme-bg, rgba(124, 58, 237, 0.04));
  box-shadow: 0 8px 24px -4px var(--game-theme-glow, rgba(124, 58, 237, 0.2));
}

.so-game-btn-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.so-game-icon-circle {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
  color: #ffffff;
  flex-shrink: 0;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}
.so-game-days-badge {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted, #64748b);
  background: var(--bg-main, #f1f5f9);
  padding: 3px 8px;
  border-radius: 6px;
  white-space: nowrap;
}

.so-game-btn-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-main, #0f172a);
  margin: 0;
  line-height: 1.25;
}
.so-game-btn-subtitle {
  font-size: 12px;
  color: var(--text-muted, #64748b);
  margin: 0;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ==========================================================================
   4. AKTİF OYUN BİLGİ ŞERİDİ (QUICK INFO TOOLBAR)
   ========================================================================== */
.so-game-info-strip {
  background: var(--bg-card, #ffffff);
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: 14px;
  padding: 14px 20px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}
.so-strip-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.so-strip-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--text-main, #0f172a);
  display: flex;
  align-items: center;
  gap: 8px;
}
.so-strip-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted, #64748b);
  background: var(--bg-main, #f1f5f9);
  padding: 4px 10px;
  border-radius: 9999px;
}

.so-strip-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.so-btn-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 1px solid var(--border-color, #cbd5e1);
  color: var(--text-main, #0f172a);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s ease;
}
.so-btn-action:hover {
  background: var(--bg-main, #f1f5f9);
  border-color: var(--text-muted, #94a3b8);
}

/* ==========================================================================
   5. IFRAME VİTRİN KUTUSU (IFRAME CONTAINER & RESPONSIVENESS)
   ========================================================================== */
.so-iframe-card {
  position: relative;
  background: var(--bg-card, #ffffff);
  border: 1.5px solid var(--border-color, #e2e8f0);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.05);
  margin-bottom: 28px;
  transition: all 0.25s ease;
}
.so-iframe-card.fullscreen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999;
  border-radius: 0;
  margin: 0;
}

/* Yükleme animasyonu / Skeleton */
.so-iframe-loader {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  min-height: 400px;
  background: var(--bg-card, #ffffff);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  z-index: 5;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.so-iframe-loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.so-spinner-balls {
  display: flex;
  gap: 8px;
}
.so-spin-ball {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  animation: soBounce 1.2s infinite ease-in-out;
}
.so-spin-ball:nth-child(1) { background: #dc2626; animation-delay: -0.32s; }
.so-spin-ball:nth-child(2) { background: #d97706; animation-delay: -0.16s; }
.so-spin-ball:nth-child(3) { background: #059669; animation-delay: 0s; }
.so-spin-ball:nth-child(4) { background: #2563eb; animation-delay: 0.16s; }

@keyframes soBounce {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.5; }
  40% { transform: scale(1.15); opacity: 1; }
}

.so-loader-text {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted, #64748b);
}

.so-iframe {
  width: 100%;
  height: 1250px; /* Otomatik postMessage ile güncellenir */
  min-height: 1100px;
  border: none;
  display: block;
  background: transparent;
  transition: height 0.2s ease;
}

/* ==========================================================================
   6. ŞANSLI NUMARALAR ÜRETİCİSİ (LUCKY NUMBERS GENERATOR WIDGET)
   ========================================================================== */
.so-generator-card {
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #1e1b4b 100%);
  color: #ffffff;
  border-radius: 18px;
  padding: 24px 28px;
  margin-bottom: 28px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 15px 35px -5px rgba(49, 46, 129, 0.35);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
@media (max-width: 860px) {
  .so-generator-card {
    flex-direction: column;
    align-items: flex-start;
  }
}

.so-gen-info h3 {
  font-size: 1.15rem;
  font-weight: 800;
  margin: 0 0 4px 0;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
}
.so-gen-info p {
  font-size: 0.88rem;
  color: #cbd5e1;
  margin: 0;
  line-height: 1.45;
}

.so-gen-center {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.so-lottery-ball {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #ffffff, #e2e8f0 70%, #94a3b8 100%);
  color: #0f172a;
  font-weight: 800;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35), inset 0 2px 4px rgba(255, 255, 255, 0.8);
  font-variant-numeric: tabular-nums;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.so-lottery-ball.bonus {
  background: radial-gradient(circle at 30% 30%, #fbbf24, #d97706 70%, #92400e 100%);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.5), inset 0 2px 4px rgba(255, 255, 255, 0.6);
}
.so-lottery-ball.animate {
  animation: ballRoll 0.4s ease;
}
@keyframes ballRoll {
  0% { transform: scale(0.6) rotate(-180deg); opacity: 0.3; }
  80% { transform: scale(1.15) rotate(10deg); }
  100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

.so-gen-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.so-btn-generate {
  background: #facc15;
  color: #0f172a;
  border: none;
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(250, 204, 21, 0.35);
}
.so-btn-generate:hover {
  background: #eab308;
  transform: translateY(-1px);
}
.so-btn-copy {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}
.so-btn-copy:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* ==========================================================================
   7. ÇEKİLİŞ TAKVİMİ & REHBER TABLOSU
   ========================================================================== */
.so-guide-section {
  background: var(--bg-card, #ffffff);
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: 18px;
  padding: 24px;
  margin-bottom: 28px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}
.so-section-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main, #0f172a);
  margin: 0 0 6px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.so-section-subtitle {
  font-size: 0.88rem;
  color: var(--text-muted, #64748b);
  margin: 0 0 18px 0;
}

.so-table-wrap {
  width: 100%;
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid var(--border-color, #e2e8f0);
}
.so-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  text-align: left;
}
.so-table th {
  background: var(--bg-main, #f8fafc);
  color: var(--text-main, #0f172a);
  font-weight: 700;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-color, #e2e8f0);
  white-space: nowrap;
}
.so-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-color, #e2e8f0);
  color: var(--text-main, #334155);
}
.so-table tr:last-child td {
  border-bottom: none;
}
.so-table tr:hover td {
  background: rgba(124, 58, 237, 0.02);
}

/* ==========================================================================
   8. SSS (FAQ) ACCORDION
   ========================================================================== */
.so-faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
@media (max-width: 780px) {
  .so-faq-grid {
    grid-template-columns: 1fr;
  }
}
.so-faq-item {
  background: var(--bg-main, #f8fafc);
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: 12px;
  padding: 16px 18px;
}
.so-faq-q {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main, #0f172a);
  margin: 0 0 6px 0;
  display: flex;
  align-items: center;
  gap: 6px;
}
.so-faq-a {
  font-size: 0.86rem;
  color: var(--text-muted, #64748b);
  margin: 0;
  line-height: 1.5;
}

/* ==========================================================================
   9. SEO SAYFALANDIRMA / LİNKLER ŞERİDİ
   ========================================================================== */
.so-seo-links-card {
  background: var(--bg-card, #ffffff);
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: 16px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.so-seo-links-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-muted, #64748b);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.so-seo-pills-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.so-seo-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 8px;
  background: var(--bg-main, #f1f5f9);
  color: var(--text-main, #0f172a);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid transparent;
  transition: all 0.15s ease;
}
.so-seo-pill:hover {
  background: rgba(124, 58, 237, 0.1);
  color: #7c3aed;
  border-color: rgba(124, 58, 237, 0.25);
}
.so-seo-pill.active {
  background: #7c3aed;
  color: #ffffff;
  font-weight: 700;
}

/* ==========================================================================
   10. DARK MODE UYARLAMASI
   ========================================================================== */
[data-theme="dark"] .so-breadcrumb span.current,
[data-theme="dark"] .so-main-title,
[data-theme="dark"] .so-game-btn-title,
[data-theme="dark"] .so-strip-title,
[data-theme="dark"] .so-section-title,
[data-theme="dark"] .so-faq-q {
  color: #f8fafc;
}

[data-theme="dark"] .so-source-pill,
[data-theme="dark"] .so-game-btn,
[data-theme="dark"] .so-game-info-strip,
[data-theme="dark"] .so-iframe-card,
[data-theme="dark"] .so-iframe-loader,
[data-theme="dark"] .so-guide-section,
[data-theme="dark"] .so-seo-links-card {
  background: #0f172a;
  border-color: #1e293b;
}

[data-theme="dark"] .so-game-days-badge,
[data-theme="dark"] .so-strip-pill,
[data-theme="dark"] .so-faq-item,
[data-theme="dark"] .so-seo-pill,
[data-theme="dark"] .so-table th {
  background: #090e1a;
  color: #cbd5e1;
}

[data-theme="dark"] .so-table th,
[data-theme="dark"] .so-table td,
[data-theme="dark"] .so-table-wrap {
  border-color: #1e293b;
}

[data-theme="dark"] .so-table td {
  color: #cbd5e1;
}

[data-theme="dark"] .so-table tr:hover td {
  background: rgba(124, 58, 237, 0.08);
}

[data-theme="dark"] .so-btn-action {
  color: #cbd5e1;
  border-color: #334155;
}
[data-theme="dark"] .so-btn-action:hover {
  background: #1e293b;
  color: #ffffff;
}

[data-theme="dark"] .so-game-btn.active {
  background: rgba(124, 58, 237, 0.12);
}
