/* Empêche le scroll horizontal SANS couper les boutons */
html, body {
  overflow-x: auto;
  width: 100%;
}

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

:root {
  --bg-dark: #0a0a14;
  --bg-card: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.12);
  --accent: #00d4ff;
  --accent-2: #a855f7;
  --success: #10b981;
  --danger: #ef4444;
  --warning: #f59e0b;
  --text: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.6);
}

body {
  font-family: -apple-system, 'SF Pro Display', 'Segoe UI', sans-serif;
  background: radial-gradient(ellipse at top, #1a1a3e 0%, var(--bg-dark) 60%);
  color: var(--text);
  min-height: 100vh;
}

/* HEADER */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(10, 10, 20, 0.7);
  border-bottom: 1px solid var(--border);
  padding: 1rem 2rem;
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  height: auto;
  flex-wrap: wrap;
  padding: 0.5rem 0;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  cursor: pointer;
  flex-shrink: 0;
}

nav ul {
  display: flex;
  gap: 0.5rem;
  list-style: none;
  align-items: center;
  flex-wrap: wrap;
}

.nav-link {
  padding: 0.6rem 1.3rem;
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s;
  background: transparent;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  height: 40px;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--text);
  background: var(--bg-card);
}

.nav-link.active {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: white;
}

.header-actions {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.search-bar {
  flex: 1;
  max-width: 350px;
  min-width: 200px;
  order: 3;
  flex-basis: 100%;
  margin-top: 0.5rem;
}

.search-bar input {
  width: 100%;
  padding: 0.6rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-size: 0.9rem;
  height: 40px;
}

.search-bar input:focus {
  outline: none;
  border-color: var(--accent);
}

.notification-btn {
  position: relative;
  width: 40px;
  height: 40px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: all 0.3s;
  flex-shrink: 0;
}

.notification-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--accent);
}

.notification-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: var(--danger);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 10px;
  min-width: 18px;
  text-align: center;
  line-height: 1;
}

.btn, .login-btn {
  padding: 0 1.3rem;
  height: 40px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: white;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  flex-shrink: 0;
}

.btn:hover, .login-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 212, 255, 0.4);
}

.mobile-menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  cursor: pointer;
  font-size: 1.5rem;
  align-items: center;
  justify-content: center;
}

main {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem;
}

.section, .game-detail {
  display: none;
  animation: fadeIn 0.4s ease;
}

.section.active, .game-detail.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

h1 {
  font-size: 2rem;
  background: linear-gradient(135deg, #fff, var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* FILTRES PLATEFORMES */
.platform-filters {
  display: flex;
  gap: 0.7rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.platform-btn {
  padding: 0.7rem 1.4rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text-muted);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  backdrop-filter: blur(10px);
}

.platform-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
  transform: translateY(-2px);
}

.platform-btn.active {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: white;
  border-color: transparent;
  box-shadow: 0 10px 30px rgba(0, 212, 255, 0.3);
}

.platform-count {
  background: rgba(255, 255, 255, 0.2);
  padding: 0.1rem 0.5rem;
  border-radius: 10px;
  font-size: 0.75rem;
}

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

.game-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  backdrop-filter: blur(10px);
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
  cursor: pointer;
}

.game-card:hover {
  transform: translateY(-8px);
  border-color: var(--accent);
  box-shadow: 0 20px 40px rgba(0, 212, 255, 0.25);
}

.game-cover-wrapper {
  aspect-ratio: 3/4; /* Modifié pour afficher la jaquette verticale entière */
  overflow: hidden;
  background: linear-gradient(135deg, #1e1e3f, #2a1a4a);
  position: relative;
}

.game-cover {
  width: 100%;
  height: 100%;
  object-fit: contain; /* Modifié pour ne pas couper l'image */
  transition: transform 0.3s;
}

.game-card:hover .game-cover {
  transform: scale(1.05);
}

.game-info {
  padding: 1.2rem;
}

.game-title {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  line-height: 1.3;
}

.game-genre {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 0.8rem;
}

.game-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.game-platforms {
  display: flex;
  gap: 0.3rem;
  flex-wrap: wrap;
}

.platform-tag {
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.platform-tag.pc { background: rgba(74, 158, 255, 0.2); color: #4a9eff; }
.platform-tag.ps { background: rgba(0, 55, 145, 0.3); color: #6ab4ff; }
.platform-tag.xbox { background: rgba(16, 124, 16, 0.2); color: #4ade80; }
.platform-tag.switch { background: rgba(230, 0, 18, 0.2); color: #f87171; }
.platform-tag.mobile { background: rgba(251, 191, 36, 0.2); color: #fbbf24; }

.game-rating {
  color: #fbbf24;
  font-weight: 700;
  font-size: 0.9rem;
}

.game-questions-count {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: rgba(0, 212, 255, 0.15);
  color: var(--accent);
  padding: 0.2rem 0.6rem;
  border-radius: 10px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-top: 0.6rem;
}

/* PAGE DÉTAIL JEU */
.back-btn {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.6rem 1.2rem;
  border-radius: 10px;
  cursor: pointer;
  margin-bottom: 1.5rem;
  transition: all 0.2s;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.back-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.game-detail-header {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2rem;
  margin-bottom: 2rem;
  display: grid;
  grid-template-columns: 350px 1fr;
  gap: 2rem;
  backdrop-filter: blur(10px);
}

.game-detail-cover {
  aspect-ratio: 3/4; /* Modifié pour correspondre à la jaquette verticale dans la page de détail */
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(135deg, #1e1e3f, #2a1a4a);
}

.game-detail-cover img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* Modifié pour afficher l'image entière */
}

.game-detail-info h2 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.game-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  background: var(--bg-card);
  padding: 0.4rem 0.8rem;
  border-radius: 10px;
  border: 1px solid var(--border);
}

.game-detail-description {
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
}

.game-detail-platforms {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.game-detail-platforms .platform-tag {
  font-size: 0.8rem;
  padding: 0.3rem 0.7rem;
}

.questions-for-game {
  margin-top: 2rem;
}

.questions-for-game h3 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* QUESTIONS */
.main-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2rem;
}

.question-filters {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.5rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-muted);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
}

.filter-btn.active {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

.question-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  backdrop-filter: blur(10px);
  transition: border-color 0.3s, transform 0.2s;
  cursor: pointer;
}

.question-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.question-layout {
  display: flex;
  gap: 1.5rem;
}

.vote-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  min-width: 60px;
}

.vote-btn {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.vote-btn:hover {
  background: rgba(0, 212, 255, 0.15);
  color: var(--accent);
  border-color: var(--accent);
}

.vote-btn.voted-up { background: var(--accent); color: white; border-color: var(--accent); }
.vote-btn.voted-down { background: var(--danger); color: white; border-color: var(--danger); }

.vote-count {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--accent);
}

.question-content { flex: 1; }
.question-title { font-size: 1.15rem; font-weight: 600; margin-bottom: 0.5rem; }
.question-excerpt { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 1rem; line-height: 1.5; }
.question-meta { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.tags { display: flex; gap: 0.4rem; flex-wrap: wrap; align-items: center; }

.tag {
  padding: 0.25rem 0.7rem;
  background: rgba(0, 212, 255, 0.15);
  color: var(--accent);
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.tag:hover { background: var(--accent); color: white; }

.stats { display: flex; gap: 1rem; color: var(--text-muted); font-size: 0.85rem; align-items: center; }

.status-badge {
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}

.status-badge.solved { background: rgba(16, 185, 129, 0.2); color: var(--success); }
.status-badge.unsolved { background: rgba(245, 158, 11, 0.2); color: var(--warning); }

/* TYPE BADGE */
.type-badge {
  padding: 0.25rem 0.7rem;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.type-badge.bug { background: rgba(239, 68, 68, 0.2); color: #f87171; }
.type-badge.build { background: rgba(168, 85, 247, 0.2); color: #c084fc; }
.type-badge.boss { background: rgba(245, 158, 11, 0.2); color: #fbbf24; }
.type-badge.reglage { background: rgba(0, 212, 255, 0.2); color: var(--accent); }
.type-badge.question { background: rgba(255, 255, 255, 0.1); color: var(--text-muted); }

/* SPOILER */
.spoiler-block {
  margin: 1rem 0;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.spoiler-hidden {
  background: linear-gradient(135deg, #1a1a2e, #2a1a3e);
  padding: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  transition: background 0.3s;
}

.spoiler-hidden:hover {
  background: linear-gradient(135deg, #2a1a3e, #3a2a4e);
}

.spoiler-icon {
  font-size: 1.5rem;
  background: rgba(245, 158, 11, 0.2);
  padding: 0.5rem;
  border-radius: 8px;
}

.spoiler-text { flex: 1; }
.spoiler-title { font-weight: 600; color: var(--warning); font-size: 0.9rem; margin-bottom: 0.2rem; }
.spoiler-desc { color: var(--text-muted); font-size: 0.8rem; }

.spoiler-reveal {
  background: rgba(245, 158, 11, 0.1);
  padding: 1rem;
  border-left: 3px solid var(--warning);
  color: var(--text);
  line-height: 1.6;
  display: none;
}

.spoiler-block.revealed .spoiler-hidden { display: none; }
.spoiler-block.revealed .spoiler-reveal { display: block; }

.answer-block { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--border); }

.answer-best {
  background: rgba(16, 185, 129, 0.05);
  border-left: 3px solid var(--success);
  padding: 1rem;
  border-radius: 0 8px 8px 0;
}

.answer-best-header {
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
  color: var(--success);
  font-weight: 600;
}

/* SIDEBAR */
.sidebar { display: flex; flex-direction: column; gap: 1.5rem; }

.sidebar-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
  backdrop-filter: blur(10px);
}

.sidebar-card h3 { font-size: 1rem; margin-bottom: 1rem; color: var(--accent); }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.top-users { display: flex; flex-direction: column; gap: 0.8rem; }

.user-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.5rem;
  border-radius: 10px;
  transition: background 0.2s;
}

.user-item:hover { background: rgba(255, 255, 255, 0.05); }

.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
}

.user-name { font-weight: 600; font-size: 0.9rem; }
.user-rep { color: var(--text-muted); font-size: 0.8rem; }

/* PROFIL */
.profile-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2rem;
  backdrop-filter: blur(10px);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2rem;
  align-items: center;
  margin-bottom: 2rem;
}

.avatar-large {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  font-weight: 700;
}

.badges-section { margin-top: 2rem; }

.badges-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.badge-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.badge-icon { font-size: 2rem; }
.badge-info { flex: 1; }
.badge-name { font-weight: 600; font-size: 0.9rem; margin-bottom: 0.2rem; }
.badge-desc { color: var(--text-muted); font-size: 0.8rem; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
}

.stat {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
  text-align: center;
}

.stat-value { font-size: 2rem; font-weight: 700; color: var(--accent); }
.stat-label { color: var(--text-muted); font-size: 0.85rem; margin-top: 0.3rem; }

/* MODAL */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.modal.active { display: flex; }

.modal-content {
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2rem;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.modal-header h2 {
  font-size: 1.4rem;
  background: linear-gradient(135deg, #fff, var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.close-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
}

.close-btn:hover { color: var(--danger); }

.form-group { margin-bottom: 1.3rem; }
.form-group label { display: block; margin-bottom: 0.5rem; font-weight: 600; font-size: 0.9rem; }

.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 0.7rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-size: 0.9rem;
  font-family: inherit;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.form-group textarea { min-height: 120px; resize: vertical; }

/* TEMPLATES */
.template-selector {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}

.template-option {
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 1rem;
  cursor: pointer;
  transition: all 0.3s;
  text-align: center;
}

.template-option:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.template-option.selected {
  border-color: var(--accent);
  background: rgba(0, 212, 255, 0.1);
}

.template-icon { font-size: 2rem; margin-bottom: 0.5rem; }
.template-name { font-weight: 600; font-size: 0.85rem; margin-bottom: 0.2rem; }
.template-desc { font-size: 0.7rem; color: var(--text-muted); }

.template-fields {
  display: none;
  background: rgba(0, 212, 255, 0.05);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 10px;
  padding: 1rem;
  margin-bottom: 1.3rem;
}

.template-fields.active { display: block; }

.template-fields-title {
  font-size: 0.85rem;
  color: var(--accent);
  margin-bottom: 0.8rem;
  font-weight: 600;
}

/* SPOILER TOGGLE */
.spoiler-toggle {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.8rem 1rem;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 10px;
  margin-bottom: 1rem;
  cursor: pointer;
}

.spoiler-toggle:hover {
  background: rgba(245, 158, 11, 0.15);
}

.spoiler-checkbox {
  width: 20px;
  height: 20px;
  accent-color: var(--warning);
  cursor: pointer;
}

.spoiler-toggle-label {
  flex: 1;
  font-size: 0.9rem;
  color: var(--warning);
  font-weight: 500;
}

.spoiler-toggle-info {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* LOGIN */
.login-options { display: flex; flex-direction: column; gap: 1rem; }

.login-btn-oauth {
  padding: 1rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  transition: all 0.3s;
}

.login-btn-oauth:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.login-btn-oauth.discord { background: linear-gradient(135deg, #5865F2, #7289da); border: none; }
.login-btn-oauth.google { background: white; color: #333; }
.login-btn-oauth.reddit { background: linear-gradient(135deg, #FF4500, #FF5722); border: none; }

/* FOOTER */
footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 3rem 2rem 2rem;
  margin-top: 4rem;
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h4 { color: var(--accent); margin-bottom: 1rem; font-size: 1rem; }
.footer-section ul { list-style: none; }
.footer-section li { margin-bottom: 0.5rem; }

.footer-section a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

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

.footer-bottom {
  max-width: 1400px;
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* HOW IT WORKS */
.how-it-works {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 3rem;
  margin-bottom: 2rem;
  text-align: center;
}

.how-it-works h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  background: linear-gradient(135deg, #fff, var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.step-icon { font-size: 3rem; }
.step-title { font-size: 1.2rem; font-weight: 600; }
.step-desc { color: var(--text-muted); font-size: 0.9rem; }

/* TOAST */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: white;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0, 212, 255, 0.4);
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s;
  z-index: 2000;
}

.toast.show { transform: translateY(0); opacity: 1; }

/* RESPONSIVE */
@media (max-width: 1200px) {
  .nav-container { flex-wrap: wrap; height: auto; }
  .search-bar { order: 3; max-width: 100%; flex-basis: 100%; }
  .game-detail-header { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .main-layout { grid-template-columns: 1fr; }
  .question-layout { flex-direction: column; }
  .vote-section { flex-direction: row; }
  .profile-card { grid-template-columns: 1fr; text-align: center; }
  .avatar-large { margin: 0 auto; }
  nav ul { display: none; }
  .mobile-menu-btn { display: flex; }
  .search-bar { display: none; }
  .header-actions { gap: 0.5rem; }
  .btn, .login-btn { padding: 0 1rem; font-size: 0.85rem; }
}