/* ===== CASINO PAGE ===== */
/* Dark theme override */

body.page-casino {
  background: #0e0e2c;
  color: #fff;
  font-size: 14px;
  padding-bottom: 80px;
}

/* Dark theme variable overrides */
body.page-casino {
  --bg-dark: #0e0e2c;
  --bg-card: #1a1a3e;
  --bg-card-hover: #252550;
  --border: rgba(255,255,255,0.1);
  --text-muted: rgba(255,255,255,0.6);
}

/* ===== HEADER (casino overrides) ===== */
body.page-casino .header { padding: 14px 24px; }

/* ===== SUB HEADER ===== */
.sub-header {
  background: var(--primary-dark);
  padding: 8px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.sub-links {
  display: flex;
  gap: 6px;
}
.sub-links a {
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 500;
  color: rgba(255,255,255,.7);
  border-radius: 4px;
  transition: all .2s;
}
.sub-links a:hover { color: #fff; background: rgba(255,255,255,.1); }
.sub-right {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 12px;
  color: rgba(255,255,255,.6);
}
.lang-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: rgba(255,255,255,.7);
  background: none;
}

/* ===== HERO BANNER ===== */
.hero-banner {
  position: relative;
  margin: 0;
  overflow: hidden;
}
.hero-banner img {
  width: 100%;
  height: auto;
  display: block;
}
.hero-arrows {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 12px;
  transform: translateY(-50%);
  z-index: 5;
}
.hero-arrow {
  width: 40px;
  height: 40px;
  background: rgba(0,0,0,.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
  backdrop-filter: blur(4px);
}
.hero-dots {
  position: absolute;
  bottom: 12px;
  right: 24px;
  display: flex;
  gap: 8px;
  z-index: 5;
}
.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,.3);
}
.hero-dot.active { background: #fff; }
.casino-label {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent-green);
  color: #1a1a2e;
  padding: 4px 24px;
  border-radius: 8px 8px 0 0;
  font-size: 13px;
  font-weight: 700;
  z-index: 5;
}

/* ===== CATEGORY TABS ===== */
.category-bar {
  background: #0e0e2c;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.cat-btn {
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.6);
  background: #1a1a3e;
  transition: all .2s;
}
.cat-btn:hover { color: #fff; background: #252550; }
.cat-btn.active { background: var(--accent-green); color: #1a1a2e; }
.cat-separator { width: 1px; height: 24px; background: rgba(255,255,255,0.1); }
.cat-scroll-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #1a1a3e;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  font-size: 12px;
}
.cat-spacer { flex: 1; }
.cat-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #1a1a3e;
  border: 1px solid var(--accent-green);
  border-radius: 20px;
  padding: 6px 16px;
}
.cat-search input {
  background: none;
  border: none;
  outline: none;
  color: #fff;
  font-size: 12px;
  font-family: inherit;
  width: 140px;
}
.cat-search input::placeholder { color: rgba(255,255,255,0.6); }
.cat-search i { color: var(--accent-green); font-size: 14px; }

/* ===== CONTENT ===== */
.content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px;
}

/* Section Header */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  margin-top: 32px;
}
.section-header:first-child { margin-top: 0; }
.section-header h2 {
  font-size: 18px;
  font-weight: 700;
  border-bottom: 2px solid var(--accent-green);
  padding-bottom: 4px;
  display: inline-block;
}
.section-header .show-all {
  color: rgba(255,255,255,0.6);
  font-size: 13px;
  font-weight: 500;
  transition: color .2s;
}
.section-header .show-all:hover { color: var(--accent-green); }

/* ===== GAME GRID ===== */
.game-grid { display: grid; gap: 12px; }
.game-grid.featured {
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  grid-template-rows: auto auto;
}
.game-grid.featured .game-card:first-child { grid-row: 1/3; }
.game-grid.standard { grid-template-columns: repeat(6, 1fr); }
.game-grid.four { grid-template-columns: repeat(4, 1fr); }

/* ===== GAME CARD ===== */
.game-card {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4/3;
  transition: transform .2s, box-shadow .2s;
}
.game-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0,0,0,.4);
}
.game-card .game-bg {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px;
  text-align: center;
  position: relative;
  background-size: cover;
  background-position: center;
}
.game-card .game-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,.3) 100%);
  z-index: 1;
}
/* Sparkle effect */
.game-card .game-bg::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(from 0deg, transparent 0%, rgba(255,255,255,.03) 10%, transparent 20%);
  z-index: 1;
  animation: cardShine 6s linear infinite;
}
@keyframes cardShine {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
.game-card .game-title {
  font-size: 18px;
  font-weight: 900;
  text-transform: uppercase;
  text-shadow: 0 2px 12px rgba(0,0,0,.8), 0 0 30px rgba(255,255,255,.15);
  line-height: 1.15;
  position: relative;
  z-index: 2;
  letter-spacing: .5px;
}
.game-card .game-provider {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: rgba(255,255,255,.85);
  background: linear-gradient(0deg, rgba(0,0,0,.7) 0%, rgba(0,0,0,.3) 100%);
  padding: 6px 4px;
  z-index: 2;
}
.game-card .game-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0,0,0,.6);
  backdrop-filter: blur(4px);
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 9px;
  font-weight: 700;
  z-index: 2;
  letter-spacing: .5px;
}
.game-card .game-badge.jackpot {
  background: linear-gradient(135deg, #ffd700, #ff8c00);
  color: #1a1a2e;
  box-shadow: 0 2px 10px rgba(255,215,0,.4);
}

/* Play overlay */
.game-card .play-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .25s;
  z-index: 3;
}
.game-card:hover .play-overlay { opacity: 1; }
.play-btn-circle {
  width: 60px;
  height: 60px;
  background: var(--accent-green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #1a1a2e;
  box-shadow: 0 4px 24px rgba(0,230,118,.5);
  transition: transform .2s;
}
.game-card:hover .play-btn-circle { transform: scale(1.1); }

/* ===== CASINO FOOTER (Dark Theme) ===== */
body.page-casino .footer {
  background: #0a0a1e;
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 40px;
}
body.page-casino .footer-col a:hover { color: var(--accent-green); }
body.page-casino .footer-logo .ft { color: var(--primary); }
body.page-casino .payment-row {
  color: rgba(255,255,255,0.6);
  font-size: 12px;
  font-weight: 600;
}
body.page-casino .license-box {
  background: rgba(255,255,255,.03);
}
body.page-casino .footer-copy {
  color: rgba(255,255,255,0.6);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .game-grid.featured { grid-template-columns: 1fr 1fr 1fr; }
  .game-grid.featured .game-card:first-child { grid-row: auto; }
  .game-grid.standard { grid-template-columns: repeat(4, 1fr); }
  .game-grid.four { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .sub-header { display: none; }
  .hero-banner { height: 200px; }
  .hero-banner img { height: 100%; object-fit: cover; }
  .category-bar { overflow-x: auto; gap: 8px; padding: 10px 12px; }
  .cat-btn { white-space: nowrap; font-size: 12px; padding: 6px 14px; }
  .cat-search { display: none; }
  .content { padding: 16px 12px; }
  .game-grid.featured { grid-template-columns: 1fr 1fr; }
  .game-grid.featured .game-card:first-child { grid-row: auto; }
  .game-grid.standard { grid-template-columns: repeat(3, 1fr); }
  .game-grid.four { grid-template-columns: repeat(2, 1fr); }
  .section-header h2 { font-size: 15px; }
}
@media (max-width: 480px) {
  .game-grid.featured,
  .game-grid.standard,
  .game-grid.four { grid-template-columns: 1fr 1fr; }
}
