/* ===== LOBBY PAGE STYLES ===== */

/* Providers Cloud */
.providers-cloud {
  padding: 2rem 0;
}

.provider-badge {
  background: linear-gradient(135deg, rgba(217, 70, 239, 0.2) 0%, rgba(139, 31, 168, 0.2) 100%);
  border: 2px solid rgba(217, 70, 239, 0.3);
  padding: 0.75rem 1.5rem;
  border-radius: 2rem;
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  cursor: pointer;
}

.provider-badge:hover {
  background: linear-gradient(135deg, rgba(217, 70, 239, 0.4) 0%, rgba(139, 31, 168, 0.4) 100%);
  border-color: rgba(217, 70, 239, 0.6);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(217, 70, 239, 0.3);
}

/* Game Categories Carousel */
.game-categories-carousel {
  position: relative;
  padding: 1rem 0;
}

.carousel-container {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.carousel-track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 1rem 0;
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

.category-card {
  flex: 0 0 180px;
  background: linear-gradient(135deg, rgba(217, 70, 239, 0.15) 0%, rgba(139, 31, 168, 0.15) 100%);
  border: 2px solid rgba(217, 70, 239, 0.3);
  border-radius: 1rem;
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.category-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(217, 70, 239, 0.1) 0%, rgba(139, 31, 168, 0.1) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.category-card:hover {
  transform: translateY(-5px) scale(1.05);
  border-color: rgba(217, 70, 239, 0.6);
  box-shadow: 0 10px 30px rgba(217, 70, 239, 0.3);
}

.category-card:hover::before {
  opacity: 1;
}

.category-icon {
  font-size: 3rem;
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 1;
}

.category-count {
  font-size: 1.5rem;
  font-weight: 700;
  color: #d946ef;
  margin-bottom: 0.25rem;
  position: relative;
  z-index: 1;
}

.category-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  position: relative;
  z-index: 1;
}

.carousel-btn {
  background: linear-gradient(135deg, #d946ef 0%, #8b1fa8 100%);
  border: none;
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.carousel-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 5px 20px rgba(217, 70, 239, 0.5);
}

.carousel-btn:active {
  transform: scale(0.95);
}

/* Slots Grid */
.slots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.slot-card {
  background: linear-gradient(135deg, rgba(217, 70, 239, 0.1) 0%, rgba(139, 31, 168, 0.1) 100%);
  border: 2px solid rgba(217, 70, 239, 0.2);
  border-radius: 1rem;
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
}

.slot-card:hover {
  transform: translateY(-5px);
  border-color: rgba(217, 70, 239, 0.5);
  box-shadow: 0 10px 30px rgba(217, 70, 239, 0.3);
}

.slot-image {
  position: relative;
  width: 100%;
  padding-bottom: 100%;
  overflow: hidden;
}

.branded-bg {
  background: linear-gradient(135deg, #d946ef 0%, #8b1fa8 100%);
  position: relative;
}

.branded-bg::before {
  content: '🎰';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 4rem;
  opacity: 0.3;
}

.play-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.slot-card:hover .play-overlay {
  opacity: 1;
}

.play-btn {
  background: linear-gradient(135deg, #d946ef 0%, #8b1fa8 100%);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 2rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
}

.play-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 5px 20px rgba(217, 70, 239, 0.5);
}

.slot-title {
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.75rem;
  margin: 0;
}

.slot-provider {
  color: #d946ef;
  font-size: 0.75rem;
  padding: 0 0.75rem 0.75rem;
  margin: 0;
}

/* ===== CHALLENGES PAGE STYLES ===== */

.challenges-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.challenge-card {
  background: linear-gradient(135deg, rgba(217, 70, 239, 0.1) 0%, rgba(139, 31, 168, 0.1) 100%);
  border: 2px solid rgba(217, 70, 239, 0.3);
  border-radius: 1rem;
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.challenge-card:hover {
  transform: translateY(-5px);
  border-color: rgba(217, 70, 239, 0.6);
  box-shadow: 0 10px 30px rgba(217, 70, 239, 0.3);
}

.challenge-card.daily {
  border-left: 4px solid #f59e0b;
}

.challenge-card.weekly {
  border-left: 4px solid #10b981;
}

.challenge-card.special {
  border-left: 4px solid #d946ef;
}

.challenge-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(217, 70, 239, 0.2);
  color: #d946ef;
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.challenge-icon {
  font-size: 3rem;
  text-align: center;
  margin-bottom: 1rem;
}

.challenge-title {
  color: #fff;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.challenge-desc {
  color: #a0a0a0;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.challenge-progress {
  margin-bottom: 1rem;
}

.progress-bar {
  background: rgba(255, 255, 255, 0.1);
  height: 8px;
  border-radius: 1rem;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.progress-fill {
  background: linear-gradient(90deg, #d946ef 0%, #8b1fa8 100%);
  height: 100%;
  transition: width 0.3s ease;
}

.progress-text {
  color: #d946ef;
  font-size: 0.85rem;
  font-weight: 600;
}

.challenge-reward {
  background: rgba(217, 70, 239, 0.15);
  border: 1px solid rgba(217, 70, 239, 0.3);
  border-radius: 0.5rem;
  padding: 0.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.reward-label {
  color: #a0a0a0;
  font-size: 0.85rem;
}

.reward-value {
  color: #d946ef;
  font-weight: 700;
  font-size: 0.9rem;
}

.info-card {
  background: linear-gradient(135deg, rgba(217, 70, 239, 0.1) 0%, rgba(139, 31, 168, 0.1) 100%);
  border: 2px solid rgba(217, 70, 239, 0.3);
  border-radius: 1rem;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
}

.info-card:hover {
  transform: translateY(-5px);
  border-color: rgba(217, 70, 239, 0.6);
  box-shadow: 0 10px 30px rgba(217, 70, 239, 0.3);
}

.info-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.info-title {
  color: #fff;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.info-text {
  color: #a0a0a0;
  font-size: 0.9rem;
  line-height: 1.6;
}

.cta-section {
  background: linear-gradient(135deg, rgba(217, 70, 239, 0.15) 0%, rgba(139, 31, 168, 0.15) 100%);
  border: 2px solid rgba(217, 70, 239, 0.3);
  border-radius: 1.5rem;
  padding: 3rem 2rem;
  text-align: center;
  margin: 3rem 0;
}

.cta-section h2 {
  color: #fff;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.cta-section p {
  color: #a0a0a0;
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.cta-button {
  display: inline-block;
  background: linear-gradient(135deg, #d946ef 0%, #8b1fa8 100%);
  color: white;
  padding: 1rem 2.5rem;
  border-radius: 2rem;
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 5px 20px rgba(217, 70, 239, 0.3);
}

.cta-button:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 30px rgba(217, 70, 239, 0.5);
}

/* ===== TOURNAMENTS PAGE STYLES ===== */

.tournaments-table-container {
  overflow-x: auto;
  margin: 2rem 0;
  border-radius: 1rem;
  background: linear-gradient(135deg, rgba(217, 70, 239, 0.05) 0%, rgba(139, 31, 168, 0.05) 100%);
  border: 2px solid rgba(217, 70, 239, 0.2);
}

.tournaments-table {
  width: 100%;
  border-collapse: collapse;
  color: #fff;
}

.tournaments-table thead {
  background: linear-gradient(135deg, rgba(217, 70, 239, 0.2) 0%, rgba(139, 31, 168, 0.2) 100%);
}

.tournaments-table th {
  padding: 1rem;
  text-align: left;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.85rem;
  color: #d946ef;
  border-bottom: 2px solid rgba(217, 70, 239, 0.3);
}

.tournaments-table td {
  padding: 1rem;
  border-bottom: 1px solid rgba(217, 70, 239, 0.1);
}

.tournaments-table tbody tr {
  transition: all 0.3s ease;
}

.tournaments-table tbody tr:hover {
  background: rgba(217, 70, 239, 0.1);
}

.tournament-name {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
}

.tournament-icon {
  font-size: 1.5rem;
}

.game-type-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.game-type-badge.slots {
  background: rgba(139, 92, 246, 0.2);
  color: #a78bfa;
  border: 1px solid rgba(139, 92, 246, 0.3);
}

.game-type-badge.jackpot {
  background: rgba(251, 191, 36, 0.2);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.3);
}

.game-type-badge.live {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.game-type-badge.all {
  background: rgba(34, 197, 94, 0.2);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.prize-pool {
  font-size: 1.25rem;
  font-weight: 700;
  color: #d946ef;
}

.countdown-value {
  color: #fbbf24;
  font-weight: 600;
}

.status-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.status-badge.active {
  background: rgba(34, 197, 94, 0.2);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.status-badge.vip {
  background: rgba(217, 70, 239, 0.2);
  color: #d946ef;
  border: 1px solid rgba(217, 70, 239, 0.3);
}

.btn-view-leaderboard {
  background: linear-gradient(135deg, #d946ef 0%, #8b1fa8 100%);
  color: white;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-view-leaderboard:hover {
  transform: scale(1.05);
  box-shadow: 0 5px 15px rgba(217, 70, 239, 0.4);
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
}

.modal-content {
  background: linear-gradient(135deg, rgba(15, 15, 30, 0.98) 0%, rgba(30, 15, 45, 0.98) 100%);
  margin: 5% auto;
  border: 2px solid rgba(217, 70, 239, 0.3);
  border-radius: 1rem;
  width: 90%;
  max-width: 900px;
  max-height: 85vh;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(217, 70, 239, 0.3);
}

.modal-header {
  background: linear-gradient(135deg, rgba(217, 70, 239, 0.2) 0%, rgba(139, 31, 168, 0.2) 100%);
  padding: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid rgba(217, 70, 239, 0.3);
}

.modal-header h2 {
  color: #fff;
  margin: 0;
  font-size: 1.5rem;
}

.modal-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  color: #d946ef;
  transform: rotate(90deg);
}

.modal-body {
  padding: 1.5rem;
  max-height: calc(85vh - 100px);
  overflow-y: auto;
}

.leaderboard-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.leaderboard-stat {
  background: linear-gradient(135deg, rgba(217, 70, 239, 0.15) 0%, rgba(139, 31, 168, 0.15) 100%);
  border: 2px solid rgba(217, 70, 239, 0.3);
  border-radius: 0.75rem;
  padding: 1rem;
  text-align: center;
}

.stat-label {
  display: block;
  color: #a0a0a0;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

.stat-value {
  display: block;
  color: #d946ef;
  font-size: 1.5rem;
  font-weight: 700;
}

.leaderboard-table-container {
  overflow-x: auto;
  border-radius: 0.75rem;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(217, 70, 239, 0.2);
}

.leaderboard-table {
  width: 100%;
  border-collapse: collapse;
  color: #fff;
}

.leaderboard-table thead {
  background: linear-gradient(135deg, rgba(217, 70, 239, 0.2) 0%, rgba(139, 31, 168, 0.2) 100%);
  position: sticky;
  top: 0;
  z-index: 10;
}

.leaderboard-table th {
  padding: 1rem;
  text-align: left;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.85rem;
  color: #d946ef;
}

.leaderboard-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(217, 70, 239, 0.1);
}

.leaderboard-table tbody tr {
  transition: all 0.3s ease;
}

.leaderboard-table tbody tr:hover {
  background: rgba(217, 70, 239, 0.1);
}

.leaderboard-table tbody tr.top-rank {
  background: linear-gradient(90deg, rgba(217, 70, 239, 0.15) 0%, rgba(139, 31, 168, 0.15) 100%);
}

.rank-cell {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.rank-medal {
  font-size: 1.5rem;
}

.rank-number {
  font-weight: 700;
  color: #d946ef;
}

.prize-cell {
  font-weight: 700;
  color: #22c55e;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .slots-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1rem;
  }

  .challenges-grid {
    grid-template-columns: 1fr;
  }

  .carousel-btn {
    width: 35px;
    height: 35px;
    font-size: 1.2rem;
  }

  .category-card {
    flex: 0 0 150px;
  }

  .tournaments-table-container {
    font-size: 0.85rem;
  }

  .modal-content {
    width: 95%;
    margin: 2% auto;
  }

  .leaderboard-info {
    grid-template-columns: 1fr;
  }
}
