/* ============================
   RESET & BASE
   ============================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg:        #0d0d14;
  --surface:   #16162a;
  --border:    #2a2a48;
  --accent:    #7c5cfc;
  --accent2:   #fc5c8a;
  --text:      #e8e8f0;
  --muted:     #7878a0;
  --radius:    16px;
  --font:      'Segoe UI', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { text-decoration: none; color: inherit; }

/* Header styles live in /assets/header.css */

/* ============================
   HERO
   ============================ */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6rem 4vw 5rem;
  overflow: hidden;
  min-height: calc(100vh - 60px);
}

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

.hero-content h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.15;
  margin-bottom: 1rem;
  font-weight: 800;
  letter-spacing: -1px;
}

.accent {
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-content p {
  color: var(--muted);
  font-size: 1.15rem;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 0.8rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 0 24px rgba(124, 92, 252, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 36px rgba(124, 92, 252, 0.6);
}

/* Floating decorative shapes */
.hero-art {
  position: absolute;
  right: 4vw;
  top: 50%;
  transform: translateY(-50%);
  width: clamp(280px, 28vw, 640px);
  aspect-ratio: 1 / 1;
  pointer-events: none;
}

#badcat {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  user-select: none;
}

.floating-shape {
  position: absolute;
  font-size: 3rem;
  opacity: 0.18;
  animation: float 6s ease-in-out infinite;
}

.s1 { top: 10%;  left: 20%; color: var(--accent);  animation-delay: 0s;   font-size: 4rem; }
.s2 { top: 55%;  left: 55%; color: var(--accent2); animation-delay: 1.5s; font-size: 2.5rem; }
.s3 { top: 25%;  left: 65%; color: #5cf0fc;        animation-delay: 0.8s; font-size: 3.5rem; }
.s4 { top: 70%;  left: 15%; color: #fcde5c;        animation-delay: 2.2s; font-size: 2rem; }

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%       { transform: translateY(-18px) rotate(8deg); }
}

/* ============================
   GAMES SECTION
   ============================ */
main {
  flex: 1;
  padding: 3rem 4vw 5rem;
}

.section-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.section-sub {
  color: var(--muted);
  margin-bottom: 2.5rem;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

/* ============================
   GAME CARD
   ============================ */
.game-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
  cursor: pointer;
  overflow: hidden;
}

.game-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 8px 32px rgba(124, 92, 252, 0.2);
}

/* Shimmer on hover */
.game-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 40%, rgba(124,92,252,0.06) 100%);
  opacity: 0;
  transition: opacity 0.3s;
  border-radius: var(--radius);
}

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

.card-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  background: var(--bg);
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.card-body h3 {
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}

.card-body p {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

/* Placeholder state */
.game-card.placeholder .card-icon {
  color: var(--muted);
  font-style: normal;
}

.game-card.placeholder .card-body h3 { color: var(--muted); }

.badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.6rem;
  border-radius: 50px;
  background: rgba(124, 92, 252, 0.18);
  color: var(--accent);
  border: 1px solid rgba(124, 92, 252, 0.3);
}

/* Active game badge */
.badge.live {
  background: rgba(92, 252, 140, 0.18);
  color: #5cfc8c;
  border-color: rgba(92, 252, 140, 0.3);
}

/* ============================
   FOOTER
   ============================ */
footer {
  text-align: center;
  padding: 1.5rem 4vw;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.85rem;
}

/* ============================
   RESPONSIVE
   ============================ */
@media (max-width: 640px) {
  .hero {
    padding: 3.5rem 4vw 3rem;
    min-height: unset;
  }

  .hero-art { display: none; }

  nav { gap: 1.2rem; }

  .games-grid { grid-template-columns: 1fr 1fr; gap: 1rem; }
}

@media (max-width: 400px) {
  .games-grid { grid-template-columns: 1fr; }
}
