/* === Shared Site Styles — Index Page === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #1a1a2e;
  --surface: #16213e;
  --card: #0f3460;
  --accent: #e94560;
  --text: #eee;
  --text-muted: #aab;
  --radius: 10px;
  --font: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1.25rem;
}

h1 { font-size: 2rem; margin-bottom: 0.25rem; }
.subtitle { color: var(--text-muted); margin-bottom: 1.25rem; font-size: 1.1rem; }

/* Toolbar */
.toolbar {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}
.search-input {
  flex: 1;
  min-width: 180px;
  padding: 0.55rem 0.85rem;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.1);
  background: var(--surface);
  color: var(--text);
  font-size: 0.95rem;
  font-family: var(--font);
  outline: none;
  transition: border-color 0.2s;
}
.search-input::placeholder { color: var(--text-muted); }
.search-input:focus { border-color: var(--accent); }
.sort-pills { display: flex; gap: 0.35rem; flex-shrink: 0; }
.sort-pill {
  background: var(--surface);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  padding: 0.35rem 0.75rem;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
  white-space: nowrap;
}
.sort-pill:hover { color: var(--text); border-color: rgba(255,255,255,0.2); }
.sort-pill.active { color: var(--accent); border-color: var(--accent); }
.sort-pill.active::after { content: ' ▲'; font-size: 0.6rem; }
.sort-pill.active.desc::after { content: ' ▼'; }

.game-list { display: flex; flex-direction: column; gap: 0.75rem; }

.game-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--surface);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  text-decoration: none;
  color: var(--text);
  transition: background 0.2s, border-color 0.2s;
}
.game-card:hover { background: var(--card); border-color: var(--accent); }

.game-thumb {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}
.game-info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  flex: 1;
  min-width: 0;
}
.game-title { font-size: 1.15rem; font-weight: 600; }
.game-meta { color: var(--text-muted); font-size: 0.85rem; }

@media (max-width: 600px) {
  .container { padding: 1.25rem 1rem; }
  h1 { font-size: 1.5rem; }
  .game-card { flex-wrap: wrap; }
}
