/* Enhanced Global Styles */
:root {
  --primary-color: #f0c159;
  --primary-dark: #e6a832;
  --primary-light: #f5d080;
  --bg-dark: #1a1a2e;
  --bg-darker: #0f0f1a;
  --bg-card: rgba(255,255,255,0.05);
  --text-white: #ffffff;
  --text-muted: rgba(255,255,255,0.7);
  --border-color: rgba(255,255,255,0.1);
  --success-color: #4ade80;
  --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  --gradient-bg: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-darker) 100%);
  --shadow-sm: 0 2px 10px rgba(0,0,0,0.2);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.3);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.4);
  --shadow-glow: 0 0 30px rgba(240,193,89,0.3);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 50px;
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Body Enhancements */
body {
  background: var(--gradient-bg);
  color: var(--text-white);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
}

/* Typography Improvements */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-white);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }

/* Link Styles */
a {
  color: var(--primary-color);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--primary-light);
}

/* Enhanced Buttons */
.btn, button[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  border: none;
}

.btn-primary, .btn-main {
  background: var(--gradient-primary);
  color: var(--bg-dark);
  box-shadow: var(--shadow-sm), 0 0 20px rgba(240,193,89,0.2);
}

.btn-primary:hover, .btn-main:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md), var(--shadow-glow);
}

.btn-secondary, .btn-outline {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-secondary:hover, .btn-outline:hover {
  background: var(--primary-color);
  color: var(--bg-dark);
}

/* Card Styles */
.card, .game-card, .feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.card:hover, .game-card:hover, .feature-card:hover {
  transform: translateY(-8px);
  border-color: rgba(240,193,89,0.4);
  box-shadow: var(--shadow-lg), 0 0 40px rgba(240,193,89,0.1);
}

/* Image Enhancements */
img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
}

.img-glow {
  box-shadow: var(--shadow-glow);
}

/* Section Spacing */
section {
  padding: 80px 0;
}

@media (max-width: 768px) {
  section {
    padding: 50px 0;
  }
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header Enhancements */
header, .header {
  background: rgba(26,26,46,0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1000;
}

/* Footer Enhancements */
footer, .footer {
  background: var(--bg-darker);
  border-top: 1px solid var(--border-color);
  padding: 60px 0 30px;
}

/* Form Inputs */
input, textarea, select {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  color: var(--text-white);
  font-size: 1rem;
  transition: all 0.3s ease;
  width: 100%;
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(240,193,89,0.2);
}

/* Badge Styles */
.badge, .tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  background: rgba(240,193,89,0.15);
  color: var(--primary-color);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
}

/* Animation Classes */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fadeInUp {
  animation: fadeInUp 0.6s ease forwards;
}

/* Pulse Animation for CTA */
@keyframes pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(240,193,89,0.4);
  }
  50% {
    box-shadow: 0 0 0 15px rgba(240,193,89,0);
  }
}

.btn-pulse {
  animation: pulse 2s infinite;
}

/* Gradient Text */
.gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Divider */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-color), transparent);
  margin: 40px 0;
}

/* Loading Spinner */
.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border-color);
  border-top-color: var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}
