/* Snackable Games - Hub Styles */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;600;800&display=swap');

:root {
  --bg-dark: #0f0f1a;
  --bg-card: #1a1a2e;
  --bg-card-hover: #252542;
  --accent-primary: #00d4ff;
  --accent-secondary: #ff6b6b;
  --accent-yellow: #ffd93d;
  --accent-green: #6bcb77;
  --accent-purple: #9b59b6;
  --text-primary: #ffffff;
  --text-secondary: rgba(255,255,255,0.7);
  --border-glow: rgba(0,212,255,0.3);
}

* {
  box-sizing: border-box;
}

body {
  font-family: 'Outfit', system-ui, sans-serif;
  background: var(--bg-dark);
  background-image: 
    radial-gradient(ellipse at top, rgba(0,212,255,0.1) 0%, transparent 50%),
    radial-gradient(ellipse at bottom right, rgba(255,107,107,0.08) 0%, transparent 50%);
  margin: 0;
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header */
header {
  text-align: center;
  padding: 3rem 1rem 2rem;
  position: relative;
}

header h1 {
  font-size: 2.8rem;
  font-weight: 800;
  margin: 0 0 0.5rem;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -1px;
}

header p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin: 0;
}

/* Page Layout */
.page-wrapper {
  flex: 1;
  display: flex;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  padding: 0 1rem;
}

/* Ad Sidebars */
.ad-sidebar {
  width: 180px;
  padding: 2rem 1rem;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  flex-shrink: 0;
}

.ad-banner-vertical {
  width: 160px;
  min-height: 600px;
  position: sticky;
  top: 2rem;
  background: var(--bg-card);
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.05);
}

/* Main Content */
main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem;
  min-width: 0;
}

/* Game Grid */
.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  width: 100%;
  max-width: 900px;
}

/* Game Cards */
.game-card {
  text-decoration: none;
  background: var(--bg-card);
  border-radius: 16px;
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.05);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  min-height: 160px;
}

.game-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--card-accent, var(--accent-primary));
  opacity: 0;
  transition: opacity 0.3s;
}

.game-card:hover {
  transform: translateY(-6px);
  background: var(--bg-card-hover);
  border-color: var(--card-accent, var(--accent-primary));
  box-shadow: 
    0 20px 40px rgba(0,0,0,0.4),
    0 0 30px rgba(var(--card-accent-rgb, 0,212,255), 0.15);
}

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

.game-card .emoji {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
  display: block;
}

.game-card h2 {
  font-size: 1.3rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  color: var(--text-primary);
}

.game-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.5;
  flex-grow: 1;
}

/* Card Accent Colors */
.game-card.f1 { --card-accent: #ff1e1e; --card-accent-rgb: 255,30,30; }
.game-card.fut { --card-accent: #00a651; --card-accent-rgb: 0,166,81; }
.game-card.music { --card-accent: #9b59b6; --card-accent-rgb: 155,89,182; }
.game-card.animal { --card-accent: #6bcb77; --card-accent-rgb: 107,203,119; }
.game-card.sudoku { --card-accent: #00d4ff; --card-accent-rgb: 0,212,255; }
.game-card.pomodoro { --card-accent: #ff6b6b; --card-accent-rgb: 255,107,107; }

/* Featured Badge */
.badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--accent-yellow);
  color: #1a1a2e;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Coming Soon */
.game-card.coming-soon {
  opacity: 0.5;
  pointer-events: none;
}

.game-card.coming-soon .badge {
  background: rgba(255,255,255,0.2);
  color: var(--text-secondary);
}

/* Footer */
footer {
  text-align: center;
  padding: 2rem 1rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  border-top: 1px solid rgba(255,255,255,0.05);
  margin-top: 2rem;
}

footer a {
  color: var(--accent-primary);
  text-decoration: none;
  transition: color 0.2s;
}

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

/* Responsive */
@media (max-width: 1200px) {
  .ad-sidebar {
    display: none;
  }
}

@media (max-width: 600px) {
  header h1 {
    font-size: 2rem;
  }
  
  header p {
    font-size: 1rem;
  }
  
  .game-grid {
    grid-template-columns: 1fr;
  }
  
  .game-card {
    min-height: 140px;
  }
}

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

.game-card {
  animation: fadeInUp 0.5s ease-out backwards;
}

.game-card:nth-child(1) { animation-delay: 0.1s; }
.game-card:nth-child(2) { animation-delay: 0.15s; }
.game-card:nth-child(3) { animation-delay: 0.2s; }
.game-card:nth-child(4) { animation-delay: 0.25s; }
.game-card:nth-child(5) { animation-delay: 0.3s; }
