/* ZZERSS BET - Custom UI Overrides & Fixes */
/* Profesyonel tasarım - Betovis tarzı */

/* Genel taşma önleme - mobil ve tüm cihazlar */
html, body { overflow-x: hidden; max-width: 100vw; }
.content-wrapper, .main-content, [class*="content-wrapper"], [class*="main-content"] {
  max-width: 100%;
  overflow-x: hidden;
  box-sizing: border-box;
}

/* Popüler Slotlar - 2. görsel uyumlu grid */
.populerslotlar-grid { grid-template-columns: repeat(5, 1fr) !important; }
@media (max-width: 1200px) {
  .populerslotlar-grid { grid-template-columns: repeat(4, 1fr) !important; }
}
@media (max-width: 992px) {
  .populerslotlar-grid { grid-template-columns: repeat(3, 1fr) !important; }
}
@media (max-width: 576px) {
  .populerslotlar-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 8px !important; }
  .populerslotlar-injected h2 { font-size: 1rem !important; }
}

/* Ortak değişkenler */
:root {
  --zzerss-bg: #0d0d12;
  --zzerss-card: #14141c;
  --zzerss-border: rgba(255,255,255,0.06);
  --zzerss-accent: #dc2626;
  --zzerss-accent-hover: #b91c1c;
  --zzerss-text: #ffffff;
  --zzerss-muted: #9ca3af;
}

/* React SPA sidebar gizle - bizim sabit sidebar body'de gösteriliyor */
#root .sidebar,
#root aside.sidebar,
#root [class*="sidebar"]:not(.sidebar-expand-tab),
.spark-layout .sidebar {
  display: none !important;
}

/* SPARK temasını kaldır - her yerde ZZERSS BET (kırmızı, koyu) */
#root, .spark-layout, [class*="spark"] {
  --accent-blue: #dc3545 !important;
  --bg-body: #0d0d12 !important;
  --bg-sidebar: #0c0c10 !important;
  --bg-card: #14141c !important;
}
#root .section-title i,
#root .hero-content .text-primary,
#root a[href].see-all-btn:hover,
#root .nav-link.active { color: #dc3545 !important; }
#root .slot-card:hover,
#root .game-card:hover { border-color: #dc3545 !important; box-shadow: 0 0 20px rgba(220,53,69,0.2) !important; }

/* Sidebar toggle - mobilde hamburger (React + PHP) */
.top-header-sidebar-toggle {
  display: none;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}
.top-header-sidebar-toggle:hover { background: rgba(255,255,255,0.12); }
@media (max-width: 991px) {
  .top-header-sidebar-toggle { display: flex !important; }
}

/* KAZANDIRAN OYUNLAR (Slot) - her zaman aktif (sabit arayüz) */
.sidebar a[href="/slots"],
.sidebar a[href*="/slots"],
.sidebar .nav-slot-always-active {
  background: rgba(220,38,38,0.15) !important;
  color: #fff !important;
  border-color: rgba(220,38,38,0.3) !important;
  box-shadow: 0 0 20px rgba(220,38,38,0.15) !important;
}

/* Bakiye, Deposit, Withdraw, Profil, top-navbar - her yerden kaldırıldı */
.top-header-balance, #walletContainer, .wallet-dropdown, .top-header-deposit,
.top-header-icon-profile, .deposit-btn, .withdraw-btn, .wallet-action-btn,
.wallet-container, .wallet-btn, .user-dropdown, .user-icon,
.mobile-menu-btn, .navbar-right, nav.top-navbar, .top-navbar,
.balance-display, .wallet-total, .wallet-real, .wallet-bonus {
  display: none !important;
}

/* Duyuru çubuğu - keskin kenarlı, daha az yuvarlak */
.announcement-marquee {
  background: #b91c1c !important;
  padding: 10px 50px !important;
  overflow: hidden;
  position: relative;
  box-sizing: border-box;
  border-top: 2px solid #dc2626;
  border-bottom: 2px solid #7f1d1d;
}
.marquee-content {
  padding-left: 40px;
  padding-right: 40px;
  display: inline-flex;
  align-items: center;
}
.marquee-content span {
  margin-right: 3rem;
  flex-shrink: 0;
}


/* Slot kartları - hafif köşeli */
.slot-card img, .game-card img, .game-img {
  min-height: 120px;
  background: #1a1a22;
}
.slot-card, .game-card {
  border-radius: 6px !important;
  overflow: hidden;
}
.slot-card img[src=""], .game-card img:not([src]), .game-img:not([src]) {
  opacity: 0.7;
}

/* ===== JACKPOT BANNER - keskin köşeli, daha sert ===== */
.jackpot-banner, .jackpot-banner-injected {
  border-radius: 6px !important;
  border-left: 4px solid #dc2626 !important;
  box-shadow: 4px 4px 0 rgba(0,0,0,0.25) !important;
}
.jackpot-banner .jackpot-tiers { gap: 8px; }
.jackpot-banner-injected > div:last-child > div,
.jackpot-tier { border-radius: 4px !important; }
@media (max-width: 576px) {
  .jackpot-banner, .jackpot-banner-injected { padding: 14px !important; }
  .jackpot-banner > div:nth-child(2), .jackpot-banner-injected > div:nth-child(2) { font-size: 1.5rem !important; }
  .jackpot-tier { min-width: 70px !important; padding: 8px !important; }
  .jackpot-tier > div:last-child { font-size: 0.85rem !important; }
}
/* Jackpot mobil taşma önleme - her kutu kendi alanında */
.jackpot-banner-injected > div:last-child {
  display: flex !important;
  gap: 6px !important;
  flex-wrap: wrap !important;
}
.jackpot-banner-injected > div:last-child > div {
  flex: 1 1 22% !important;
  min-width: 0 !important;
  max-width: none !important;
  overflow: hidden !important;
  padding: 8px 6px !important;
}
.jackpot-banner-injected > div:last-child > div > div:last-child {
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  font-size: clamp(0.65rem, 2.5vw, 0.9rem) !important;
}

/* ===== STORY BÖLÜMÜ - kare köşeli halkalar ===== */
.story-section, .story-section-injected {
  box-sizing: border-box;
  border-radius: 6px !important;
}
.story-section::-webkit-scrollbar, .story-section-injected::-webkit-scrollbar { height: 5px; }
.story-section::-webkit-scrollbar-thumb, .story-section-injected::-webkit-scrollbar-thumb { background: #991b1b; border-radius: 3px; }
.story-circle {
  border-radius: 6px !important;
  border: 2px solid #b91c1c !important;
}
.story-item:hover .story-circle { transform: scale(1.05); border-color: #dc2626 !important; box-shadow: 0 2px 8px rgba(185,28,28,0.4) !important; }
.story-item:hover .story-label { color: #ef4444 !important; }

/* ===== SPARK/BETOVIS BANNER - kaldırıldı, ZZERSS BET teması ===== */
.content-wrapper .hero-card { display: none !important; }

/* ===== ANA SAYFA BANNER - köşeli, daha sert ===== */
.hero-card {
  background: #16161d url('https://icons.betovis1001.com/storage/medias/betovis/content_1872355_5025b474e5b5d13d2f149436921738e6.webp') no-repeat right center !important;
  background-size: 42% auto !important;
  border-radius: 6px !important;
  min-height: 260px !important;
  box-shadow: 0 4px 0 rgba(0,0,0,0.2), 0 8px 24px rgba(0,0,0,0.3) !important;
  border: 1px solid rgba(255,255,255,0.04) !important;
}
.hero-content {
  padding: 2rem 2.5rem !important;
  text-align: left !important;
}
.hero-content h1 {
  margin-bottom: 0.75rem !important;
  font-size: 2rem !important;
  font-family: 'Bebas Neue', Impact, sans-serif !important;
  font-weight: 400 !important;
  letter-spacing: 2px !important;
  color: #fff !important;
}
.hero-content p {
  display: none !important;
}
.hero-buttons .btn:first-child,
.hero-buttons a:first-child {
  background: #b91c1c !important;
  color: #fff !important;
  padding: 12px 24px !important;
  border-radius: 4px !important;
  font-weight: 700 !important;
  border: none !important;
  box-shadow: 0 3px 0 #7f1d1d !important;
  font-family: 'Outfit', system-ui, sans-serif !important;
}
.hero-buttons .btn:first-child:hover,
.hero-buttons a:first-child:hover {
  background: #dc2626 !important;
  color: #fff !important;
  transform: translateY(1px);
  box-shadow: 0 2px 0 #7f1d1d !important;
}
.hero-image {
  display: none !important;
}

/* ===== ÜST BAR - daha keskin ===== */
.top-header {
  background: #111118 !important;
  border-bottom: 2px solid rgba(255,255,255,0.04);
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  position: sticky;
  top: 0;
  z-index: 990;
  font-family: 'Outfit', system-ui, sans-serif !important;
}
.top-header-left { display: flex; align-items: center; gap: 16px; }
.top-header-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.5px;
}
.top-header-logo span {
  color: #dc2626 !important;
  font-family: 'Bebas Neue', Impact, sans-serif !important;
  font-weight: 400 !important;
  letter-spacing: 1px;
}
.top-header-logo-img {
  max-height: 40px;
  width: auto;
  display: block;
  vertical-align: middle;
}
.top-header-logo-fallback { display: inline-flex !important; align-items: center; gap: 10px; }
.top-header-right { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.top-header-deposit {
  background: linear-gradient(135deg,#00E701,#00c853);
  color: #0a0a0f;
  padding: 8px 18px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.85rem;
  text-decoration: none;
  letter-spacing: 0.5px;
}
.top-header-deposit:hover { filter: brightness(1.1); color: #0a0a0f; }
.top-header-sep { width: 1px; height: 24px; background: rgba(255,255,255,0.15); flex-shrink: 0; }
.top-header-icon {
  width: 36px; height: 36px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #a0a0a8;
  text-decoration: none;
  transition: all 0.2s;
}
.top-header-icon:hover { background: rgba(255,255,255,0.08); color: #fff; }
.top-header-icon-red { background: rgba(220,53,69,0.2); color: #dc3545 !important; }
.top-header-lang {
  display: flex;
  align-items: center;
  padding: 6px 10px;
  color: #a0a0a8;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  border-radius: 4px;
}
.top-header-lang:hover { background: rgba(255,255,255,0.06); color: #fff; }
.top-header-time {
  font-size: 0.9rem;
  font-weight: 600;
  color: #6b7280;
  font-variant-numeric: tabular-nums;
}
.top-header-more {
  background: rgba(255,255,255,0.05);
  border: none;
  color: #a0a0a8;
  width: 36px; height: 36px;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.top-header-more:hover { background: rgba(255,255,255,0.1); color: #fff; }
@media (max-width: 991px) {
  .top-header-right .top-header-icon, .top-header-lang, .top-header-time, .top-header-more { display: none !important; }
  .top-header-auth-btn { display: inline-block !important; }
  .top-header-balance-php { display: inline-flex !important; }
}

/* Live Casino ve Canlı tab - arayüzden tamamen kaldırıldı */
a[href*="live-casino"],
a[href="/live"],
a[href="#/live"],
a[href*="#/live/"],
li:has(a[href*="live-casino"]),
li:has(a[href="/live"]),
li:has(a[href="#/live"]),
li:has(a[href*="#/live/"]) {
  display: none !important;
}
/* Ana sayfa Live Casino bolumu */
.lobby-section:has(a[href*="live-casino"]) {
  display: none !important;
}

/* ===== MOBİL UYUMLULUK ===== */
html { -webkit-text-size-adjust: 100%; touch-action: manipulation; }
body { -webkit-tap-highlight-color: transparent; overflow-x: hidden; }
* { box-sizing: border-box; }

@media (max-width: 992px) {
  .navbar-nav, .nav-menu, header nav ul { flex-wrap: wrap; }
  .wallet-btn { min-width: 120px; font-size: 0.9rem; }
  .slot-card, .game-card { min-width: 140px; }
  .hero-content h1 { font-size: 1.75rem; }
  .story-section-injected, .story-section { padding: 12px 16px !important; }
  .story-circle { width: 48px !important; height: 48px !important; }
  .story-label { font-size: 0.65rem !important; }
}

@media (max-width: 768px) {
  .hero-card { background-size: 0 0 !important; } /* Mobilde banner görseli gizle */
  .balance-display, .wallet-total { font-size: 0.9rem !important; }
  .deposit-btn, .withdraw-btn, .wallet-action-btn { padding: 8px 12px !important; font-size: 0.85rem; }
  .announcement-marquee { padding: 10px 30px !important; }
  .marquee-content span { margin-right: 2rem; }
  .slot-card img, .game-card img { min-height: 100px; }
  .hero-content h1 { font-size: 1.5rem; }
  .hero-content p { font-size: 0.9rem; }
  .lobby-section h2, .section-title { font-size: 1.25rem; }
  .main-content, [class*="main-content"]:not(.admin-main) { padding: 0.5rem !important; }
}

@media (max-width: 576px) {
  .balance-display { font-size: 0.85rem !important; }
  .deposit-btn, .withdraw-btn { padding: 10px 14px !important; }
  .wallet-btn { min-width: 100px; font-size: 0.8rem; }
  .slot-card, .game-card { min-width: 120px; }
  .announcement-marquee { padding: 8px 20px !important; font-size: 0.85rem; }
  .announcement-marquee-injected { padding: 6px 16px !important; }
  .jackpot-banner-injected { padding: 16px !important; }
  .jackpot-banner-injected > div:nth-child(2) { font-size: 1.6rem !important; }
  .jackpot-banner-injected .jackpot-tier, .jackpot-banner-injected > div:last-child > div { min-width: 70px !important; padding: 8px !important; }
  /* Tablo mobil scroll */
  .table-responsive, [class*="table"] { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  /* Form elemanları - iOS zoom önleme */
  input, select, button, .form-control { font-size: 16px !important; min-height: 44px; }
  .content-wrapper { padding: 12px !important; }
}

/* Touch-friendly butonlar */
@media (hover: none) {
  .btn, .deposit-btn, .withdraw-btn, .wallet-action-btn, button { min-height: 44px; min-width: 44px; }
}

/* Safe area (notch) */
@supports (padding: env(safe-area-inset-bottom)) {
  body { padding-bottom: env(safe-area-inset-bottom); }
}

/* ===== BONUS & PROMOSYONLAR - Profesyonel görünüm ===== */
.bonuses-page .bonus-hero {
  background: linear-gradient(135deg, #16161d 0%, #1a1a24 50%, #14141c 100%) !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  border-radius: 12px !important;
  box-shadow: 0 4px 24px rgba(0,0,0,0.3) !important;
}
.bonuses-page .bonus-hero-icon {
  background: linear-gradient(135deg, #dc2626, #b91c1c) !important;
  box-shadow: 0 4px 16px rgba(220,38,38,0.3) !important;
}
.bonuses-page .bonus-hero-title { font-size: 1.35rem !important; font-weight: 700 !important; }
.bonuses-page .wallet-item {
  background: rgba(255,255,255,0.04) !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  border-radius: 10px !important;
  padding: 18px 16px !important;
  transition: all 0.2s !important;
}
.bonuses-page .wallet-item:hover {
  background: rgba(255,255,255,0.06) !important;
  border-color: rgba(255,255,255,0.12) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2) !important;
}
.bonuses-page .w-icon { width: 40px !important; height: 40px !important; font-size: 1rem !important; border-radius: 10px !important; }
.bonuses-page .w-icon-green { background: rgba(34,197,94,0.15) !important; }
.bonuses-page .w-icon-green i { color: #22c55e !important; }
.bonuses-page .w-icon-yellow { background: rgba(251,191,36,0.15) !important; }
.bonuses-page .w-icon-yellow i { color: #fbbf24 !important; }
.bonuses-page .w-amount { font-size: 1.35rem !important; font-weight: 800 !important; }
.bonuses-page .w-label { font-size: 0.7rem !important; color: #9ca3af !important; }
.bonuses-page .b-section {
  background: #16161d !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  border-radius: 12px !important;
  box-shadow: 0 2px 12px rgba(0,0,0,0.2) !important;
}
.bonuses-page .b-section-hdr {
  border-bottom-color: rgba(255,255,255,0.06) !important;
  padding: 16px 20px !important;
}
.bonuses-page .b-section-body { padding: 20px !important; }
.bonuses-page .promo-input-wrap {
  background: rgba(0,0,0,0.25) !important;
  border: 1px solid rgba(255,255,255,0.1) !important;
  border-radius: 10px !important;
}
.bonuses-page .promo-input-wrap:focus-within { border-color: rgba(220,38,38,0.5) !important; box-shadow: 0 0 0 2px rgba(220,38,38,0.15) !important; }
.bonuses-page .promo-input-wrap button {
  background: #dc2626 !important;
  border-radius: 8px !important;
  font-weight: 700 !important;
}
.bonuses-page .promo-input-wrap button:hover { background: #b91c1c !important; }
.bonuses-page .camp-card {
  border: 1px solid rgba(255,255,255,0.08) !important;
  border-radius: 12px !important;
  overflow: hidden !important;
}
.bonuses-page .camp-card:hover {
  border-color: rgba(220,38,38,0.25) !important;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25) !important;
}
.bonuses-page .camp-top { padding: 20px !important; }
.bonuses-page .camp-badge {
  font-size: 0.6rem !important;
  padding: 4px 10px !important;
  border-radius: 6px !important;
}
.bonuses-page .camp-title { font-size: 1.05rem !important; font-weight: 700 !important; }
.bonuses-page .loss-card {
  background: rgba(220,38,38,0.08) !important;
  border: 1px solid rgba(220,38,38,0.2) !important;
  border-radius: 12px !important;
  padding: 20px !important;
}
.bonuses-page .loss-icon { background: rgba(220,38,38,0.2) !important; }
.bonuses-page .btn-loss-bonus {
  background: rgba(220,38,38,0.2) !important;
  border: 1px solid rgba(220,38,38,0.35) !important;
  color: #ef4444 !important;
  border-radius: 10px !important;
  font-weight: 700 !important;
}
.bonuses-page .btn-loss-bonus:hover { background: rgba(220,38,38,0.35) !important; }

/* ===== SITE FOOTER ===== */
.site-footer {
  background: #111118 !important;
  border-top: 2px solid rgba(255,255,255,0.04);
  padding: 36px 24px 28px;
  margin-top: auto;
}
.footer-social {
  display: flex;
  gap: 12px;
  margin-bottom: 32px;
}
.footer-social a {
  width: 42px; height: 42px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff !important;
  font-size: 1.2rem;
  text-decoration: none;
  transition: transform 0.2s;
}
.footer-social a:hover { transform: scale(1.08); }
.footer-social a:nth-child(1) { background: linear-gradient(135deg,#f09433,#e6683c,#dc2743) !important; }
.footer-social a:nth-child(2) { background: #0088cc !important; }
.footer-social a:nth-child(3) { background: #000 !important; }
.footer-social a:nth-child(4) { background: #25d366 !important; }

.footer-links {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 24px;
  margin-bottom: 36px;
}
.footer-col h4 {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #6b7280;
  margin-bottom: 14px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 8px; }
.footer-col a {
  color: #9ca3af !important;
  font-size: 0.9rem;
  text-decoration: none;
  transition: color 0.2s;
}
.footer-col a:hover { color: #fff !important; }

.footer-regulators {
  text-align: center;
  padding: 24px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  margin-bottom: 24px;
}
.footer-regulators h4 {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #6b7280;
  margin-bottom: 16px;
}
.regulator-shield {
  width: 72px; height: 72px;
  margin: 0 auto;
  background: #16a34a;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  color: #fff;
  box-shadow: 0 3px 0 #15803d;
}

.footer-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}
.badge-item { text-align: center; }
.badge-excellent {
  background: #b91c1c;
  color: #fff;
  padding: 10px 18px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 4px;
}
.badge-excellent + small { color: #9ca3af; font-size: 0.75rem; }
.badge-sikayetvar {
  background: #e0f2fe;
  color: #0c4a6e;
  padding: 12px 20px;
  border-radius: 4px;
  min-width: 160px;
}
.badge-sikayetvar strong { display: block; font-size: 0.9rem; margin-bottom: 4px; }
.badge-sikayetvar .badge-score { font-size: 1.5rem; font-weight: 800; display: block; }

@media (max-width: 992px) {
  .footer-links { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 576px) {
  .footer-links { grid-template-columns: repeat(2, 1fr); }
  .footer-badges { flex-direction: column; }
}
