/* Games Page Specific Styles */

/* Active Navigation Link */
.nav-link.active {
  color: var(--primary-gold);
}

.nav-link.active::after {
  width: 100%;
}

/* Page Header */
.page-header {
  padding: 4rem 0 4rem;
  background: linear-gradient(135deg, rgba(15, 15, 35, 0.95), rgba(30, 58, 138, 0.9));
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><pattern id="game-pattern" x="0" y="0" width="50" height="50" patternUnits="userSpaceOnUse"><rect width="2" height="2" fill="%23FFD700" opacity="0.1"/><circle cx="25" cy="25" r="1" fill="%23FF6B6B" opacity="0.1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23game-pattern)"/></svg>');
  animation: patternMove 15s linear infinite;
  z-index: -1;
}

@keyframes patternMove {
  0% { transform: translateX(0) translateY(0); }
  100% { transform: translateX(50px) translateY(50px); }
}

.page-title {
  font-family: 'Orbitron', monospace;
  font-size: 3rem;
  font-weight: 900;
  text-align: center;
  margin-bottom: 1.5rem;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: titlePulse 3s ease-in-out infinite;
}

@keyframes titlePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.02); }
}

.page-subtitle {
  font-size: 1.2rem;
  text-align: center;
  color: var(--text-light);
  max-width: 800px;
  margin: 0 auto 3rem;
  line-height: 1.6;
}

.game-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
  padding: 1.5rem;
  background: rgba(255, 215, 0, 0.1);
  border-radius: 15px;
  border: 1px solid rgba(255, 215, 0, 0.3);
  min-width: 120px;
  transition: all 0.3s ease;
}

.stat-item:hover {
  background: rgba(255, 215, 0, 0.2);
  transform: translateY(-5px);
}

.stat-number {
  font-family: 'Orbitron', monospace;
  font-size: 2rem;
  font-weight: 900;
  color: var(--primary-gold);
  margin-bottom: 0.5rem;
  animation: countUp 2s ease-out;
}

@keyframes countUp {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-gray);
  font-weight: 500;
}

/* Game Filters */
.game-filters {
  padding: 2rem 0;
	margin-bottom: 2rem;
  background: var(--dark-card);
  border-bottom: 1px solid rgba(255, 215, 0, 0.2);
  position: relative;
  z-index: 100;
}

.filter-tabs {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.filter-tab {
  background: transparent;
  border: 2px solid rgba(255, 215, 0, 0.3);
  color: var(--text-light);
  padding: 0.8rem 1.5rem;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
  position: relative;
  overflow: hidden;
}

.filter-tab::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--gradient-1);
  transition: left 0.3s ease;
  z-index: -1;
}

.filter-tab:hover::before,
.filter-tab.active::before {
  left: 0;
}

.filter-tab:hover,
.filter-tab.active {
  border-color: var(--primary-gold);
  color: var(--dark-bg);
  transform: translateY(-2px);
}

.filter-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.demo-mode-toggle {
  position: relative;
}

.demo-mode-toggle.active {
  background: var(--gradient-1);
  color: var(--dark-bg);
}

/* Game Cards Enhanced */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.game-card {
  background: var(--dark-card);
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  transition: all 0.4s ease;
  border: 2px solid transparent;
  cursor: pointer;
}

.game-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, transparent 30%, rgba(255, 215, 0, 0.1) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
  pointer-events: none;
}

.game-card:hover::after {
  transform: translateX(100%);
}

.game-card:hover {
  transform: translateY(-10px) scale(1.02);
  border-color: var(--primary-gold);
  box-shadow: 0 20px 40px rgba(255, 215, 0, 0.3);
}

.game-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: var(--gradient-2);
  color: white;
  padding: 0.3rem 0.8rem;
  border-radius: 15px;
  font-size: 0.7rem;
  font-weight: 700;
  z-index: 3;
  animation: badgePulse 2s ease-in-out infinite;
}

.game-badge.jackpot-badge {
  background: var(--gradient-3);
  animation: jackpotBadgePulse 1.5s ease-in-out infinite;
}

@keyframes badgePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

@keyframes jackpotBadgePulse {
  0%, 100% { 
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.7);
  }
  50% { 
    transform: scale(1.1);
    box-shadow: 0 0 0 5px rgba(220, 38, 38, 0.3);
  }
}

.exclusive .game-badge {
  background: var(--gradient-1);
  color: var(--dark-bg);
}

.popular .game-badge {
  background: var(--accent-green);
}

.vip .game-badge {
  background: linear-gradient(135deg, #8B5CF6, #EC4899);
}

.game-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.game-card:hover img {
  transform: scale(1.1);
}

.game-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 200px;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.game-card:hover .game-overlay {
  opacity: 1;
}

.game-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.game-actions .btn {
  padding: 0.8rem 1.5rem;
  font-size: 0.9rem;
  border-radius: 20px;
}

.game-info {
  padding: 1.5rem;
}

.game-info h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
  color: var(--text-light);
}

.game-info p {
  color: var(--text-gray);
  margin-bottom: 1rem;
  line-height: 1.5;
}

.game-stats {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.rtp {
  background: var(--accent-green);
  color: white;
  padding: 0.3rem 0.8rem;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
}

.volatility {
  color: white;
  padding: 0.3rem 0.8rem;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
}

.volatility.high {
  background: var(--accent-red);
}

.volatility.medium {
  background: #F59E0B;
}

.volatility.low {
  background: var(--accent-green);
}

.jackpot-amount {
  background: var(--gradient-3);
  color: white;
  padding: 0.3rem 0.8rem;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 700;
  animation: jackpotGlow 2s ease-in-out infinite;
}

.game-features {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.feature {
  background: rgba(255, 215, 0, 0.2);
  color: var(--primary-gold);
  padding: 0.2rem 0.6rem;
  border-radius: 10px;
  font-size: 0.7rem;
  font-weight: 500;
  border: 1px solid rgba(255, 215, 0, 0.3);
}

/* Live Casino Section */
.live-casino {
  padding: 5rem 0;
  background: linear-gradient(180deg, var(--dark-bg), rgba(26, 26, 53, 0.8));
}

.section-description {
  text-align: center;
  color: var(--text-gray);
  max-width: 700px;
  margin: 0 auto 3rem;
  font-size: 1.1rem;
  line-height: 1.6;
}

.live-games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.live-game-card {
  background: var(--dark-card);
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  transition: all 0.4s ease;
  border: 2px solid transparent;
}

.live-game-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.live-game-card:hover {
  transform: translateY(-8px);
  border-color: var(--accent-red);
  box-shadow: 0 20px 40px rgba(220, 38, 38, 0.3);
}

.live-indicator {
  position: absolute;
  top: 15px;
  left: 15px;
  background: var(--accent-red);
  color: white;
  padding: 0.4rem 0.8rem;
  border-radius: 15px;
  font-size: 0.7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  z-index: 3;
  animation: liveIndicator 2s ease-in-out infinite;
}

@keyframes liveIndicator {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.live-dot {
  width: 8px;
  height: 8px;
  background: white;
  border-radius: 50%;
  animation: liveDot 1s ease-in-out infinite;
}

@keyframes liveDot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.live-stats {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  gap: 1rem;
}

.players {
  color: var(--accent-green);
  font-weight: 600;
}

.min-bet {
  color: var(--primary-gold);
  font-weight: 600;
}

/* Poker & Table Games Section */
.table-poker {
  padding: 5rem 0;
  background: var(--dark-card);
}

.poker-section {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  margin-top: 3rem;
}

.poker-tournaments h3,
.leaderboard h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 2rem;
  color: var(--primary-gold);
  text-align: center;
}

.tournament-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.tournament-item {
  background: var(--dark-bg);
  border-radius: 15px;
  padding: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 2px solid rgba(255, 215, 0, 0.2);
  transition: all 0.3s ease;
}

.tournament-item:hover {
  border-color: var(--primary-gold);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(255, 215, 0, 0.2);
}

.tournament-info h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-light);
}

.tournament-info p {
  color: var(--primary-gold);
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.tournament-time {
  font-size: 0.9rem;
  color: var(--text-gray);
}

.leaderboard {
  background: var(--dark-bg);
  border-radius: 20px;
  padding: 2rem;
}

.leaderboard-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.leaderboard-item {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem;
  background: rgba(255, 215, 0, 0.1);
  border-radius: 10px;
  transition: all 0.3s ease;
}

.leaderboard-item:hover {
  background: rgba(255, 215, 0, 0.2);
  transform: translateX(5px);
}

.rank {
  font-weight: 900;
  color: var(--primary-gold);
  font-size: 1.1rem;
  min-width: 30px;
}

.player {
  font-weight: 600;
  color: var(--text-light);
}

.points {
  font-size: 0.9rem;
  color: var(--text-gray);
}

.prize {
  font-weight: 700;
  color: var(--accent-green);
}

/* Demo Section */
.demo-section {
  padding: 4rem 0;
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.2), rgba(255, 215, 0, 0.1));
  text-align: center;
}

.demo-actions {
  margin-top: 2rem;
}

.demo-actions .btn {
  margin: 0 0.5rem;
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .page-title {
    font-size: 2.5rem;
  }
  
  .page-subtitle {
    font-size: 1rem;
    padding: 0 1rem;
  }
  
  .game-stats {
    gap: 1rem;
  }
  
  .stat-item {
    padding: 1rem;
    min-width: 100px;
  }
  
  .stat-number {
    font-size: 1.5rem;
  }
  
  .filter-tabs {
    gap: 0.5rem;
  }
  
  .filter-tab {
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
  }
  
  .games-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
  }
  
  .live-games-grid {
    grid-template-columns: 1fr;
  }
  
  .poker-section {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .tournament-item {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .leaderboard-item {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 0.5rem;
  }
  
  .demo-actions .btn {
    display: block;
    margin: 0.5rem auto;
    width: 80%;
  }
}

@media (max-width: 480px) {
  .page-header {
    padding: 6rem 0 3rem;
  }
  
  .page-title {
    font-size: 2rem;
  }
  
  .games-grid {
    grid-template-columns: 1fr;
  }
  
  .game-actions {
    flex-direction: column;
  }
  
  .game-actions .btn {
    width: 100%;
  }
  
  .game-stats {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .game-features {
    justify-content: center;
  }
}
