/* =========================================
   Creator Arcade - Global Styles
   ========================================= */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&family=Bangers&display=swap');

:root {
  /* Color Palette */
  --bg-color: #0b0c10;
  --surface: rgba(31, 40, 51, 0.6);
  --surface-border: rgba(102, 252, 241, 0.2);
  --primary: #66fcf1;
  --secondary: #45a29e;
  --text: #c5c6c7;
  --text-bright: #ffffff;
  
  --font-body: 'Outfit', sans-serif;
  --font-heading: 'Bangers', cursive;
  
  --card-glow: 0 0 20px rgba(102, 252, 241, 0.4);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: var(--bg-color);
  background-image: 
    radial-gradient(circle at 15% 50%, rgba(102, 252, 241, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 85% 30%, rgba(69, 162, 158, 0.08) 0%, transparent 50%);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header */
header {
  padding: 4rem 2rem;
  text-align: center;
  position: relative;
  z-index: 10;
}

.title {
  font-family: var(--font-heading);
  font-size: 5rem;
  letter-spacing: 4px;
  color: var(--text-bright);
  text-shadow: 0 0 15px rgba(102, 252, 241, 0.5);
  margin-bottom: 0.5rem;
  animation: glowPulse 3s infinite alternate;
}

@keyframes glowPulse {
  from { text-shadow: 0 0 15px rgba(102, 252, 241, 0.3); }
  to { text-shadow: 0 0 25px rgba(102, 252, 241, 0.8), 0 0 10px rgba(102, 252, 241, 0.5); }
}

.subtitle {
  font-size: 1.3rem;
  font-weight: 300;
  color: var(--secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* Main Content Grid */
main {
  flex: 1;
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
  justify-content: center;
}

/* Game Card (Glassmorphism) */
.game-card {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 20px;
  padding: 1.5rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}

.game-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, transparent 100%);
  pointer-events: none;
}

.game-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: var(--card-glow);
  border-color: var(--primary);
}

.card-image-wrapper {
  width: 100%;
  height: 250px;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 1.5rem;
  position: relative;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
  filter: brightness(0.9);
}

.game-card:hover .card-image-wrapper img {
  transform: scale(1.1);
  filter: brightness(1.1);
}

.card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11, 12, 16, 0.9) 0%, transparent 50%);
}

.game-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--primary);
  color: var(--bg-color);
  font-weight: 800;
  font-size: 0.8rem;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.game-title {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  color: var(--text-bright);
  margin-bottom: 0.5rem;
  letter-spacing: 1px;
}

.game-desc {
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 1.5rem;
  flex: 1;
}

.play-prompt {
  align-self: flex-start;
  color: var(--primary);
  font-weight: 600;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: gap 0.3s ease;
}

.game-card:hover .play-prompt {
  gap: 0.8rem;
}

/* Footer */
footer {
  text-align: center;
  padding: 2rem;
  color: var(--text);
  opacity: 0.7;
  font-size: 0.9rem;
}
