/* Game Selection Page Styles */
:root {
  --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --season-gradient: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
  --event-gradient: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
  --card-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  --card-hover-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
}

body.game-selection {
  background: var(--primary-gradient);
  min-height: 100vh;
  overflow-x: hidden;
  display: block;
  width: 100%;
}

.game-selection-container {
  width: 100%;
  max-width: 100%;
  padding: 0;
  margin: 0;
}

.selection-hero {
  text-align: center;
  padding: 60px 20px;
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  clear: both;
}

.hero-title {
  font-size: 4rem;
  font-weight: 800;
  color: white;
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.2);
  margin-bottom: 20px;
  animation: slideDown 0.8s ease-out;
}

.hero-subtitle {
  font-size: 1.5rem;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 10px;
  animation: slideDown 0.8s ease-out 0.2s both;
}

.user-welcome {
  font-size: 1.2rem;
  color: white;
  background: rgba(255, 255, 255, 0.1);
  padding: 15px 30px;
  border-radius: 50px;
  display: inline-block;
  backdrop-filter: blur(10px);
  animation: slideDown 0.8s ease-out 0.4s both;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Main content container */
.selection-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px 60px;
  display: block;
  width: 100%;
  clear: both;
}

/* Continue Session Card */
.continue-card {
  background: white;
  border-radius: 20px;
  padding: 30px;
  margin-bottom: 40px;
  box-shadow: var(--card-shadow);
  display: flex;
  justify-content: space-between;
  align-items: center;
  animation: slideUp 0.8s ease-out 0.6s both;
  position: relative;
  overflow: hidden;
}

.continue-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--primary-gradient);
}

.continue-info h3 {
  font-size: 1.4rem;
  color: #2d3748;
  margin-bottom: 10px;
}

.continue-details {
  display: flex;
  gap: 20px;
  color: #718096;
}

.continue-stat {
  display: flex;
  align-items: center;
  gap: 8px;
}

.continue-stat-icon {
  font-size: 1.2rem;
}

.continue-btn {
  padding: 15px 40px;
  background: var(--primary-gradient);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.continue-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

/* Game Mode Cards Grid */
.game-modes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 40px;
  margin-bottom: 60px;
}

.mode-card {
  background: white;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
  position: relative;
  animation: slideUp 0.8s ease-out 0.8s both;
}

.mode-card:nth-child(2) {
  animation-delay: 1s;
}

.mode-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: var(--card-hover-shadow);
}

.mode-card.season-mode {
  background: linear-gradient(135deg, white 0%, #f0fffe 100%);
}

.mode-card.event-mode {
  background: linear-gradient(135deg, white 0%, #fff5f0 100%);
}

.mode-header {
  padding: 40px;
  background: var(--season-gradient);
  position: relative;
  overflow: hidden;
}

.event-mode .mode-header {
  background: var(--event-gradient);
}

.mode-header::after {
  content: "";
  position: absolute;
  bottom: -50%;
  right: -20%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.1) 0%,
    transparent 70%
  );
  animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.5;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.3;
  }
}

.mode-icon {
  font-size: 4rem;
  margin-bottom: 20px;
  display: inline-block;
  animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.mode-title {
  font-size: 2rem;
  font-weight: 700;
  color: #2d3748;
  margin-bottom: 10px;
}

.mode-subtitle {
  color: #4a5568;
  font-size: 1.1rem;
}

.mode-body {
  padding: 40px;
}

.mode-description {
  color: #4a5568;
  line-height: 1.8;
  font-size: 1.05rem;
  margin-bottom: 30px;
}

.mode-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 30px 0;
  border-top: 2px solid #e2e8f0;
  border-bottom: 2px solid #e2e8f0;
  margin-bottom: 30px;
}

.stat-box {
  text-align: center;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.9rem;
  color: #718096;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.mode-action {
  width: 100%;
  padding: 18px;
  background: var(--primary-gradient);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.mode-action::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition:
    width 0.6s ease,
    height 0.6s ease;
}

.mode-action:hover::before {
  width: 300px;
  height: 300px;
}

.mode-action:hover {
  transform: scale(1.05);
}

/* Status Badge */
.status-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  padding: 8px 20px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: #48bb78;
  color: white;
  box-shadow: 0 4px 10px rgba(72, 187, 120, 0.3);
}

.badge-live {
  background: #f56565;
  animation: pulse-badge 2s infinite;
}

@keyframes pulse-badge {
  0%,
  100% {
    box-shadow: 0 4px 10px rgba(245, 101, 101, 0.3);
  }
  50% {
    box-shadow: 0 4px 20px rgba(245, 101, 101, 0.6);
  }
}

/* Events Section */
.events-section {
  margin-top: 60px;
}

.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-title {
  font-size: 3rem;
  color: white;
  font-weight: 700;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
  margin-bottom: 10px;
}

.section-subtitle {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
}

.events-carousel {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.event-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  animation: slideUp 0.8s ease-out both;
}

.event-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--card-hover-shadow);
}

.event-banner {
  height: 140px;
  background: var(--event-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.event-banner-icon {
  font-size: 3.5rem;
  filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.1));
}

.event-timer {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}

.timer-urgent {
  background: #f56565;
  animation: blink 1s infinite;
}

@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

.event-content {
  padding: 25px;
}

.event-name {
  font-size: 1.4rem;
  font-weight: 700;
  color: #2d3748;
  margin-bottom: 10px;
}

.event-desc {
  color: #718096;
  line-height: 1.6;
  margin-bottom: 20px;
  font-size: 0.95rem;
}

.event-stats-mini {
  display: flex;
  justify-content: space-around;
  padding: 15px 0;
  border-top: 1px solid #e2e8f0;
  margin-bottom: 20px;
}

.event-stat-mini {
  text-align: center;
}

.event-stat-value {
  font-size: 1.3rem;
  font-weight: 700;
  color: #2d3748;
}

.event-stat-label {
  font-size: 0.75rem;
  color: #a0aec0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.event-play-btn {
  width: 100%;
  padding: 12px;
  background: var(--event-gradient);
  color: #2d3748;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.event-play-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 5px 15px rgba(252, 182, 159, 0.4);
}

/* No Events State */
.no-events {
  text-align: center;
  padding: 60px;
  background: white;
  border-radius: 20px;
  box-shadow: var(--card-shadow);
}

.no-events-icon {
  font-size: 4rem;
  margin-bottom: 20px;
  opacity: 0.5;
}

.no-events-title {
  font-size: 1.8rem;
  color: #4a5568;
  margin-bottom: 10px;
}

.no-events-text {
  color: #718096;
  font-size: 1.1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .selection-content {
    padding: 0 15px 40px;
    max-width: 100%;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.2rem;
  }

  .user-welcome {
    font-size: 1rem;
    padding: 12px 20px;
  }

  .game-modes-grid {
    grid-template-columns: 1fr !important;
    gap: 25px;
  }

  .continue-card {
    flex-direction: column;
    text-align: center;
    gap: 20px;
    padding: 20px;
  }

  .continue-details {
    flex-direction: column;
    gap: 10px;
  }

  .continue-btn {
    width: 100%;
  }

  .mode-header {
    padding: 30px 20px;
  }

  .mode-body {
    padding: 25px 20px;
  }

  .mode-icon {
    font-size: 3rem;
  }

  .mode-title {
    font-size: 1.6rem;
  }

  .mode-subtitle {
    font-size: 1rem;
  }

  .mode-description {
    font-size: 0.95rem;
    margin-bottom: 20px;
  }

  .mode-stats {
    padding: 20px 0;
    margin-bottom: 20px;
  }

  .stat-number {
    font-size: 1.8rem;
  }

  .stat-label {
    font-size: 0.8rem;
  }

  .mode-action {
    font-size: 1rem;
    padding: 15px;
  }

  .section-title {
    font-size: 2rem;
  }

  .section-subtitle {
    font-size: 1rem;
  }

  .events-carousel {
    grid-template-columns: 1fr !important;
    gap: 20px;
  }

  .event-banner {
    height: 120px;
  }

  .event-banner-icon {
    font-size: 3rem;
  }

  .event-content {
    padding: 20px;
  }

  .event-name {
    font-size: 1.2rem;
  }

  .event-desc {
    font-size: 0.9rem;
    margin-bottom: 15px;
  }

  .event-stats-mini {
    padding: 12px 0;
    margin-bottom: 15px;
  }

  .event-stat-value {
    font-size: 1.1rem;
  }

  .event-play-btn {
    padding: 10px;
  }
}

@media (max-width: 640px) {
  body.game-selection {
    display: flex;
    flex-direction: column;
  }

  .selection-hero {
    width: 100%;
    display: block;
    margin-bottom: 20px;
  }

  .selection-content {
    width: 100%;
    display: block;
  }

  .game-modes-grid {
    grid-template-columns: 1fr !important;
    display: grid !important;
  }

  .events-carousel {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 480px) {
  .selection-hero {
    padding: 40px 15px;
  }

  .selection-content {
    padding: 0 10px 30px;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .user-welcome {
    font-size: 0.9rem;
    padding: 10px 15px;
  }

  .continue-card {
    padding: 15px;
    border-radius: 15px;
  }

  .continue-info h3 {
    font-size: 1.2rem;
  }

  .continue-stat {
    font-size: 0.9rem;
  }

  .continue-btn {
    padding: 12px 20px;
    font-size: 1rem;
  }

  .game-modes-grid {
    gap: 20px;
  }

  .mode-card {
    border-radius: 18px;
  }

  .mode-header {
    padding: 25px 15px;
  }

  .mode-body {
    padding: 20px 15px;
  }

  .mode-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
  }

  .mode-title {
    font-size: 1.4rem;
  }

  .mode-subtitle {
    font-size: 0.9rem;
  }

  .mode-description {
    font-size: 0.9rem;
    line-height: 1.6;
  }

  .mode-stats {
    padding: 15px 0;
    gap: 10px;
  }

  .stat-number {
    font-size: 1.5rem;
  }

  .stat-label {
    font-size: 0.7rem;
  }

  .mode-action {
    padding: 12px;
    font-size: 0.95rem;
  }

  .status-badge {
    top: 10px;
    right: 10px;
    padding: 5px 12px;
    font-size: 0.7rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .events-carousel {
    gap: 15px;
  }

  .event-card {
    border-radius: 15px;
  }

  .event-banner {
    height: 100px;
  }

  .event-banner-icon {
    font-size: 2.5rem;
  }

  .event-timer {
    font-size: 0.75rem;
    padding: 4px 10px;
  }

  .event-content {
    padding: 15px;
  }

  .event-name {
    font-size: 1.1rem;
    margin-bottom: 8px;
  }

  .event-desc {
    font-size: 0.85rem;
  }

  .event-stat-value {
    font-size: 1rem;
  }

  .event-stat-label {
    font-size: 0.7rem;
  }

  .no-events {
    padding: 40px 20px;
  }

  .no-events-icon {
    font-size: 3rem;
  }

  .no-events-title {
    font-size: 1.4rem;
  }

  .no-events-text {
    font-size: 0.95rem;
  }
}

