/* Premium Game Section Styles */
:root {
  /* Color Palette */
  --primary-color: #2563EB;
  --primary-light: #3B82F6;
  --secondary-color: #14B8A6;
  --secondary-light: #22C55E;
  --accent-color: #F59E0B;
  --accent-light: #F97316;
  --bg-color: #F8FAFC;
  --card-bg: #FFFFFF;
  --text-dark: #111827;
  --text-light: #374151;
  --border-color: #E5E7EB;

  /* Typography */
  --font-main: 'Inter', 'Roboto', 'Outfit', sans-serif;

  /* Border & Shadows */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-glow: 0 0 15px rgba(37, 99, 235, 0.3);

  /* Transitions */
  --transition-fast: 0.2s ease-in-out;
  --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Styles */
body.game-section {
  background-color: var(--bg-color);
  color: var(--text-dark);
  font-family: var(--font-main);
  line-height: 1.6;
  margin: 0;
  padding: 0;
}

.game-container-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* Typography Enhancements */
.game-section h1, .game-section h2, .game-section h3 {
  color: var(--text-dark);
  font-weight: 700;
  margin-bottom: 1rem;
}

.game-section p {
  color: var(--text-light);
  margin-bottom: 1rem;
}

/* Premium Buttons */
.btn-premium {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition-smooth);
  border: none;
  background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
  color: #fff;
  box-shadow: var(--shadow-md);
}

.btn-premium:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  color: #fff;
}

.btn-accent {
  background: linear-gradient(135deg, var(--accent-light), var(--accent-color));
}
.btn-secondary {
  background: linear-gradient(135deg, var(--secondary-light), var(--secondary-color));
}

/* Glassmorphism Classes */
.glass-panel {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

/* Game Cards */
.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.game-card {
  background-color: var(--card-bg);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  padding: 15px;
  transition: var(--transition-smooth);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.game-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}

.game-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-bottom: 15px;
}

.game-card h3 {
  font-size: 1.1rem;
  margin-bottom: 5px;
}

.game-card p {
  font-size: 0.9rem;
  color: var(--text-light);
  flex-grow: 1;
}

/* Gamification Widgets */
.gamification-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--card-bg);
  padding: 15px 20px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  margin-bottom: 25px;
  border: 1px solid var(--border-color);
}

.streak-widget {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: var(--accent-color);
}

.streak-icon {
  font-size: 1.5rem;
  animation: pulse 2s infinite;
}

.xp-widget {
  display: flex;
  align-items: center;
  gap: 15px;
  width: 50%;
}

.xp-progress-bar {
  flex-grow: 1;
  height: 10px;
  background-color: var(--border-color);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.xp-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--secondary-light), var(--secondary-color));
  width: 0%;
  transition: width 1s ease-in-out;
}

/* Hero Section */
.game-hero {
  position: relative;
  padding: 60px 40px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(37,99,235,0.1) 0%, rgba(59,130,246,0.2) 100%);
  margin-bottom: 40px;
  overflow: hidden;
}

.game-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 300px;
  height: 300px;
  background: var(--primary-light);
  filter: blur(100px);
  opacity: 0.3;
  border-radius: 50%;
}

.game-hero-content {
  position: relative;
  z-index: 1;
  max-width: 600px;
}

.game-hero h1 {
  font-size: 2.5rem;
  background: -webkit-linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 20px;
}

/* Animations */
@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-slide-up {
  animation: slideUp 0.5s ease-out forwards;
}

/* Responsive */
@media (max-width: 768px) {
  .gamification-bar {
    flex-direction: column;
    gap: 15px;
  }
  .xp-widget {
    width: 100%;
  }
  .game-hero {
    padding: 30px 20px;
  }
  .game-hero h1 {
    font-size: 2rem;
  }
}
