/* ============================================================
   Switch 2 ROMs Hub — Estilo Oficial Clean Moderno (White & Red)
   Paleta: Nintendo Red (#e60012), Branco Puro, Cinza Platina
   ============================================================ */

:root {
  /* Cores Oficiais e Primárias (Sem tons de roxo/violeta) */
  --nintendo-red: #e60012;
  --nintendo-red-hover: #c9000f;
  --nintendo-red-active: #a8000c;
  --nintendo-red-light: rgba(230, 0, 18, 0.08);
  --joycon-blue: #00a2ed;
  --joycon-blue-light: rgba(0, 162, 237, 0.08);
  --emerald-green: #10b981;
  --emerald-green-light: rgba(16, 185, 129, 0.1);
  --amber-orange: #f59e0b;
  --amber-orange-light: rgba(245, 158, 11, 0.1);

  /* Tema Claro (Padrão: Clean White & eShop) */
  --bg-body: #f6f7fa;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #ffffff;
  --bg-subtle: #f0f2f6;
  --bg-hover: #e9ecf1;
  --border-color: #e2e5eb;
  --border-strong: #d0d5dd;
  
  --text-main: #14171a;
  --text-secondary: #565e69;
  --text-muted: #88929e;
  --text-inverse: #ffffff;

  /* Efeitos e Sombras */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 12px 28px rgba(0, 0, 0, 0.09), 0 4px 8px rgba(0, 0, 0, 0.04);
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.05);
  --shadow-glow: 0 0 25px rgba(230, 0, 18, 0.22);

  /* Dimensões e Raios */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Space Grotesk', var(--font-main);
  --transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Modo Escuro Opcional */
body.dark-theme {
  --bg-body: #0d0f12;
  --bg-surface: #16191e;
  --bg-surface-elevated: #1f242b;
  --bg-subtle: #1c2026;
  --bg-hover: #262c35;
  --border-color: #272d36;
  --border-strong: #38414e;

  --text-main: #f3f5f8;
  --text-secondary: #a3adb9;
  --text-muted: #6b7684;
  --text-inverse: #ffffff;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 16px 36px rgba(0, 0, 0, 0.5);
  --shadow-card: 0 6px 24px rgba(0, 0, 0, 0.35);
  --shadow-glow: 0 0 30px rgba(230, 0, 18, 0.35);
}

/* Reset Básico e Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-main);
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.3s ease, color 0.3s ease;
}

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

button, input, select {
  font-family: inherit;
  font-size: inherit;
  border: none;
  outline: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ============================================================
   Barra Superior de Aviso (eShop Announcement)
   ============================================================ */
.top-announcement {
  background-color: #121417;
  color: #e1e4e8;
  font-size: 0.8rem;
  padding: 0.45rem 0;
  border-bottom: 2px solid var(--nintendo-red);
}

.top-bar-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.announcement-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background-color: var(--nintendo-red);
  color: #ffffff;
  padding: 0.15rem 0.6rem;
  border-radius: var(--radius-full);
  font-weight: 800;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
}

.announcement-text {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 500;
}

.announcement-text i {
  color: var(--emerald-green);
}

.firmware-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--joycon-blue);
  font-weight: 700;
  font-size: 0.75rem;
}

/* ============================================================
   Navbar Principal
   ============================================================ */
.navbar {
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.nav-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 1.5rem;
}

/* Logo do Joy-Con Switch 2 */
.brand-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.brand-logo-wrapper {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.joycon-icon {
  display: flex;
  gap: 3px;
  width: 32px;
  height: 38px;
}

.joycon-left {
  flex: 1;
  background-color: var(--nintendo-red);
  border-radius: 12px 3px 3px 12px;
  position: relative;
}

.joycon-left::after {
  content: '';
  position: absolute;
  top: 8px;
  left: 5px;
  width: 5px;
  height: 5px;
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
}

.joycon-right {
  flex: 1;
  background-color: var(--joycon-blue);
  border-radius: 3px 12px 12px 3px;
  position: relative;
}

.joycon-right::after {
  content: '';
  position: absolute;
  bottom: 8px;
  right: 5px;
  width: 5px;
  height: 5px;
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
}

.brand-text-group .brand-title {
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--text-main);
  line-height: 1.1;
}

.brand-text-group .brand-title span {
  color: var(--nintendo-red);
}

.brand-text-group .brand-tag {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Barra de Busca na Navbar */
.nav-search-bar {
  flex: 1;
  max-width: 480px;
  position: relative;
  display: flex;
  align-items: center;
}

.nav-search-bar .search-icon {
  position: absolute;
  left: 1rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  pointer-events: none;
}

.nav-search-bar input {
  width: 100%;
  height: 44px;
  padding: 0 2.5rem 0 2.6rem;
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  color: var(--text-main);
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
}

.nav-search-bar input:focus {
  background-color: var(--bg-surface);
  border-color: var(--nintendo-red);
  box-shadow: 0 0 0 3px var(--nintendo-red-light);
}

.nav-clear-search {
  position: absolute;
  right: 0.75rem;
  background: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.3rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.nav-clear-search:hover {
  color: var(--nintendo-red);
}

/* Botões da Navbar */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text-secondary);
  background: transparent;
  transition: var(--transition);
}

.nav-btn:hover {
  color: var(--nintendo-red);
  background-color: var(--bg-subtle);
}

.nav-btn.active {
  color: var(--nintendo-red);
  background-color: var(--nintendo-red-light);
}

.theme-toggle-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--bg-subtle);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.theme-toggle-btn:hover {
  color: var(--nintendo-red);
  border-color: var(--nintendo-red);
}

/* ============================================================
   Controle de Views SPA (#catalogView e #gameDetailView)
   ============================================================ */
.spa-view {
  display: none;
  opacity: 0;
  transition: opacity 0.25s ease-in-out;
}

.spa-view.active {
  display: block;
  opacity: 1;
}

/* ============================================================
   Hero Spotlight (Destaque Principal do Switch 2)
   ============================================================ */
.hero-spotlight {
  padding: 1.75rem 0 1rem;
}

.spotlight-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 380px;
  display: flex;
  align-items: center;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
  background-color: #111417;
  color: #ffffff;
}

.spotlight-bg {
  position: absolute;
  inset: 0;
  background-image: url('https://images.unsplash.com/photo-1518709268805-4e9042af9f23?q=80&w=1600&auto=format&fit=crop');
  background-size: cover;
  background-position: center 30%;
  transform: scale(1.02);
  transition: transform 0.6s ease;
}

.spotlight-card:hover .spotlight-bg {
  transform: scale(1.05);
}

.spotlight-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(14, 16, 20, 0.94) 0%,
    rgba(14, 16, 20, 0.85) 45%,
    rgba(14, 16, 20, 0.3) 100%
  );
}

.spotlight-content {
  position: relative;
  z-index: 2;
  padding: 3rem;
  max-width: 680px;
}

.spotlight-badge-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.badge-nintendo {
  background-color: var(--nintendo-red);
  color: #ffffff;
}

.badge-format {
  background-color: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.badge-verified {
  background-color: var(--emerald-green);
  color: #ffffff;
}

.badge-accent {
  background-color: var(--joycon-blue-light);
  color: var(--joycon-blue);
  border: 1px solid rgba(0, 162, 237, 0.25);
}

.badge-region {
  background-color: var(--bg-subtle);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
}

.spotlight-title {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
  color: #ffffff;
}

.spotlight-desc {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.spotlight-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.spotlight-meta {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 600;
}

.spotlight-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

/* ============================================================
   Botões Estilizados
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.75rem 1.6rem;
  border-radius: var(--radius-full);
  font-weight: 800;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.btn-nintendo-red {
  background-color: var(--nintendo-red);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(230, 0, 18, 0.35);
}

.btn-nintendo-red:hover {
  background-color: var(--nintendo-red-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(230, 0, 18, 0.45);
}

.btn-nintendo-red:active {
  background-color: var(--nintendo-red-active);
  transform: translateY(0);
}

.btn-secondary {
  background-color: var(--bg-surface);
  color: var(--text-main);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background-color: var(--bg-subtle);
  border-color: var(--border-strong);
}

.btn-outline-red {
  background: transparent;
  color: var(--nintendo-red);
  border: 2px solid var(--nintendo-red);
}

.btn-outline-red:hover {
  background-color: var(--nintendo-red);
  color: #ffffff;
}

/* ============================================================
   Controles do Catálogo & Barra de Filtros
   ============================================================ */
.catalog-controls-section {
  padding: 2.25rem 0 1rem;
}

.filter-header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.section-heading {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-main);
}

.section-subheading {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-top: 0.2rem;
}

.catalog-stats-pill {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-secondary);
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-full);
}

.catalog-stats-pill span {
  color: var(--nintendo-red);
  font-weight: 900;
}

.filters-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
  background-color: var(--bg-surface);
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.categories-scroll {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.categories-scroll::-webkit-scrollbar {
  display: none;
}

.category-chip {
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  background-color: var(--bg-subtle);
  color: var(--text-secondary);
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
}

.category-chip:hover {
  color: var(--text-main);
  background-color: var(--bg-hover);
}

.category-chip.active {
  background-color: var(--nintendo-red);
  color: #ffffff;
  border-color: var(--nintendo-red);
  box-shadow: 0 2px 8px rgba(230, 0, 18, 0.25);
}

.toolbar-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.format-toggle-group {
  display: flex;
  background-color: var(--bg-subtle);
  padding: 3px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
}

.format-pill {
  padding: 0.35rem 0.85rem;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--text-muted);
  border-radius: var(--radius-full);
  cursor: pointer;
  background: transparent;
  transition: var(--transition);
}

.format-pill:hover {
  color: var(--text-main);
}

.format-pill.active {
  background-color: var(--bg-surface);
  color: var(--nintendo-red);
  box-shadow: var(--shadow-sm);
}

.sort-wrapper {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--bg-subtle);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.clean-select {
  background: transparent;
  color: var(--text-main);
  font-weight: 700;
  cursor: pointer;
}

/* ============================================================
   Grid de Jogos do Nintendo Switch 2 (Estilo Boxart eShop)
   ============================================================ */
.games-grid-section {
  padding: 1.5rem 0 3rem;
}

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

/* Card do Jogo Switch 2 */
.game-card {
  background-color: var(--bg-surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  cursor: pointer;
  position: relative;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, border-color 0.25s ease;
}

.game-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--nintendo-red);
}

/* Faixa Vermelha de Cabeçalho do Cartucho/Boxart Switch 2 */
.card-switch2-banner {
  background-color: var(--nintendo-red);
  color: #ffffff;
  padding: 0.3rem 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.card-switch2-banner span i {
  margin-right: 3px;
}

.card-cover-wrapper {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background-color: #0c0e11;
}

.card-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.card-cover-badges {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  right: 0.75rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  pointer-events: none;
}

.tag-format {
  font-size: 0.7rem;
  font-weight: 800;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-sm);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

.tag-format.xci {
  background-color: rgba(0, 162, 237, 0.9);
  color: #ffffff;
}

.tag-format.nsp {
  background-color: rgba(16, 185, 129, 0.9);
  color: #ffffff;
}

.tag-size {
  font-size: 0.7rem;
  font-weight: 800;
  background-color: rgba(18, 20, 24, 0.85);
  color: #ffffff;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-sm);
  backdrop-filter: blur(8px);
}

/* Corpo do Card */
.card-body {
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-category {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--nintendo-red);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 0.35rem;
}

.card-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.3;
  margin-bottom: 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.45;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-color);
  padding-top: 0.75rem;
  margin-top: auto;
}

.card-meta-firmware {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
}

.card-action-btn {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--nintendo-red);
  display: flex;
  align-items: center;
  gap: 0.3rem;
  transition: gap 0.2s ease;
}

.game-card:hover .card-action-btn {
  gap: 0.5rem;
}

/* Estado Vazio */
.empty-state {
  text-align: center;
  padding: 4rem 1rem;
  background-color: var(--bg-surface);
  border-radius: var(--radius-lg);
  border: 1px dashed var(--border-color);
}

.empty-state-icon {
  font-size: 3rem;
  color: var(--nintendo-red);
  margin-bottom: 1rem;
}

.empty-state h3 {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 0.4rem;
}

.empty-state p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

/* ============================================================
   Seção Guia & Emulação
   ============================================================ */
.guide-section {
  padding: 2rem 0 4rem;
}

.guide-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  display: flex;
  gap: 2.5rem;
  box-shadow: var(--shadow-card);
}

.guide-icon-column {
  font-size: 3rem;
  color: var(--nintendo-red);
}

.guide-info-column {
  flex: 1;
}

.guide-info-column h3 {
  font-size: 1.4rem;
  font-weight: 800;
  margin: 0.6rem 0;
  color: var(--text-main);
}

.guide-info-column p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

.guide-steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.step-box {
  background-color: var(--bg-subtle);
  padding: 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  position: relative;
}

.step-num {
  width: 28px;
  height: 28px;
  background-color: var(--nintendo-red);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.8rem;
  margin-bottom: 0.75rem;
}

.step-box h4 {
  font-size: 0.95rem;
  font-weight: 800;
  margin-bottom: 0.4rem;
  color: var(--text-main);
}

.step-box p {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.step-box code {
  background-color: var(--bg-hover);
  padding: 0.15rem 0.35rem;
  border-radius: var(--radius-xs);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--nintendo-red);
}

/* ============================================================
   PÁGINA DEDICADA DO JOGO (#gameDetailView)
   ============================================================ */
.game-detail-container {
  padding: 1.5rem 1.5rem 5rem;
}

/* Top Nav / Voltar */
.game-top-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background-color: var(--bg-surface);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-full);
  font-weight: 800;
  font-size: 0.85rem;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.btn-back:hover {
  background-color: var(--nintendo-red);
  color: #ffffff;
  border-color: var(--nintendo-red);
  transform: translateX(-3px);
}

.breadcrumbs {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.breadcrumbs a {
  color: var(--text-secondary);
}

.breadcrumbs a:hover {
  color: var(--nintendo-red);
}

.crumb-current {
  color: var(--nintendo-red);
  font-weight: 700;
}

/* Card Header do Jogo */
.game-header-card {
  position: relative;
  background-color: var(--bg-surface);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-color);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  margin-bottom: 2.5rem;
}

.game-backdrop-blur {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: blur(50px) brightness(0.65);
  opacity: 0.35;
  transform: scale(1.1);
  pointer-events: none;
}

.game-backdrop-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.4) 0%,
    var(--bg-surface) 90%
  );
  pointer-events: none;
}

body.dark-theme .game-backdrop-gradient {
  background: linear-gradient(
    to bottom,
    rgba(22, 25, 30, 0.6) 0%,
    var(--bg-surface) 90%
  );
}

.game-header-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 2.75rem;
  padding: 2.75rem;
}

/* Coluna da Capa 3D Boxart */
.game-cover-column {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.switch2-boxart-frame {
  background-color: #ffffff;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.25);
  border: 2px solid #ffffff;
  transition: transform 0.35s ease;
}

.switch2-boxart-frame:hover {
  transform: scale(1.02) rotate(-0.5deg);
}

.switch2-red-header {
  background-color: var(--nintendo-red);
  color: #ffffff;
  padding: 0.45rem 0.85rem;
  text-align: center;
  font-weight: 900;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
}

.boxart-image-wrapper {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background-color: #0d0f12;
}

.detail-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.boxart-badges {
  padding: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  background-color: var(--bg-subtle);
}

.verified-seal-box {
  background-color: var(--emerald-green-light);
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 0.85rem;
  color: var(--text-main);
}

.verified-seal-box i {
  font-size: 1.5rem;
  color: var(--emerald-green);
}

.verified-seal-box strong {
  font-size: 0.85rem;
  display: block;
}

.verified-seal-box p {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

/* Coluna de Informações do Jogo */
.game-info-column {
  display: flex;
  flex-direction: column;
}

.game-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}

.game-main-title {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--text-main);
  line-height: 1.15;
  margin-bottom: 0.4rem;
}

.game-developer-text {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.game-synopsis {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

/* Caixa de Recursos */
.game-features-box {
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-color);
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.75rem;
}

.game-features-box h3 {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.game-features-box h3 i {
  color: var(--nintendo-red);
}

.features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.features-list li {
  font-size: 0.88rem;
  color: var(--text-secondary);
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  line-height: 1.5;
}

.features-list li::before {
  content: '✓';
  font-weight: 900;
  color: var(--emerald-green);
}

/* Quick Specs */
.quick-specs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
  margin-bottom: 1.75rem;
}

.spec-pill {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}

.spec-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.2rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.spec-val {
  font-size: 1.05rem;
  font-weight: 900;
  color: var(--text-main);
}

.jump-to-downloads {
  margin-top: auto;
}

/* ============================================================
   Blocos de Seções do Jogo (Screenshots, Ficha, Downloads)
   ============================================================ */
.game-section-block {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  margin-bottom: 2.25rem;
  box-shadow: var(--shadow-card);
}

.section-title-wrap {
  margin-bottom: 1.75rem;
}

.section-title-wrap h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.section-title-wrap h2 i {
  color: var(--nintendo-red);
}

.section-title-wrap p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
}

/* Galeria de Screenshots */
.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.screenshot-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  cursor: pointer;
  background-color: #0e1014;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.screenshot-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--nintendo-red);
}

.screenshot-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.screenshot-item:hover .screenshot-thumb {
  transform: scale(1.05);
}

.screenshot-overlay-zoom {
  position: absolute;
  inset: 0;
  background: rgba(14, 16, 20, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
  color: #ffffff;
  font-size: 1.5rem;
}

.screenshot-item:hover .screenshot-overlay-zoom {
  opacity: 1;
}

.screenshot-caption-tag {
  position: absolute;
  bottom: 0.6rem;
  left: 0.6rem;
  right: 0.6rem;
  background-color: rgba(14, 16, 20, 0.85);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.35rem 0.6rem;
  border-radius: var(--radius-xs);
  backdrop-filter: blur(6px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Ficha Técnica / Specs Table */
.tech-specs-card {
  background-color: var(--bg-subtle);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  overflow: hidden;
}

.tech-specs-table {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

.tech-row {
  display: flex;
  flex-direction: column;
  padding: 1.1rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.tech-row:nth-child(odd) {
  border-right: 1px solid var(--border-color);
}

.tech-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.tech-val {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  word-break: break-all;
}

.hash-code {
  font-family: monospace;
  font-size: 0.8rem;
  background-color: var(--bg-hover);
  padding: 0.3rem 0.5rem;
  border-radius: var(--radius-xs);
  color: var(--text-secondary);
}

/* Espelhos de Download */
.download-mirrors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.75rem;
}

.mirror-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.mirror-card:hover {
  transform: translateY(-3px);
  border-color: var(--nintendo-red);
  box-shadow: var(--shadow-md);
}

.mirror-card.highlight {
  border-color: var(--nintendo-red);
  background-color: var(--nintendo-red-light);
}

.mirror-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.mirror-icon-box {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background-color: var(--nintendo-red);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.mirror-icon-box.gdrive {
  background-color: #0f9d58;
}

.mirror-icon-box.mediafire {
  background-color: #1299f3;
}

.mirror-icon-box.torrent {
  background-color: #ea580c;
}

.mirror-titles h4 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-main);
}

.mirror-titles p {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.mirror-details-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 1.25rem;
  font-size: 0.8rem;
}

.mirror-speed {
  font-weight: 700;
  color: var(--emerald-green);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.mirror-size {
  font-weight: 800;
  color: var(--text-main);
}

.mirror-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.6rem;
  margin-top: auto;
}

.btn-download-mirror {
  background-color: var(--nintendo-red);
  color: #ffffff;
  padding: 0.65rem 1rem;
  border-radius: var(--radius-full);
  font-weight: 800;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: var(--transition);
}

.btn-download-mirror:hover {
  background-color: var(--nintendo-red-hover);
}

.btn-copy-mirror {
  background-color: var(--bg-subtle);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.btn-copy-mirror:hover {
  color: var(--nintendo-red);
  border-color: var(--nintendo-red);
  background-color: var(--bg-hover);
}

/* Espelhos Multi-Partes no Site Público */
.mirror-card.multipart-card {
  grid-column: 1 / -1; /* Ocupa largura total quando tem muitas partes para melhor visualização */
}

.multipart-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--joycon-blue-light);
  color: var(--joycon-blue);
  border: 1px solid rgba(0, 162, 237, 0.25);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 0.25rem;
}

.multipart-alert-box {
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-left: 3px solid var(--joycon-blue);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.85rem;
  margin-bottom: 1rem;
  font-size: 0.8rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.multipart-alert-box i {
  color: var(--joycon-blue);
  font-size: 0.95rem;
}

.mirror-parts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.65rem;
  margin-top: 0.5rem;
}

.part-download-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.65rem 0.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  transition: var(--transition);
}

.part-download-card:hover {
  border-color: var(--nintendo-red);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.part-card-info {
  display: flex;
  flex-direction: column;
}

.part-card-title {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.part-card-title i {
  color: var(--nintendo-red);
  font-size: 0.75rem;
}

.part-card-size {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.part-card-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.btn-part-download {
  background: var(--nintendo-red);
  color: #ffffff;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  text-decoration: none;
  transition: var(--transition);
}

.btn-part-download:hover {
  background: var(--nintendo-red-hover);
}

.btn-part-copy {
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.75rem;
  transition: var(--transition);
}

.btn-part-copy:hover {
  color: var(--nintendo-red);
  border-color: var(--nintendo-red);
}

.download-notice-box {
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-color);
  padding: 1.25rem;
  border-radius: var(--radius-md);
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.download-notice-box i {
  color: var(--joycon-blue);
  font-size: 1.2rem;
  margin-top: 0.1rem;
}

.download-notice-box code {
  color: var(--nintendo-red);
  font-weight: 800;
}

/* ============================================================
   MODAL LIGHTBOX DE SCREENSHOTS
   ============================================================ */
.lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.lightbox-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 12, 16, 0.92);
  backdrop-filter: blur(10px);
}

.lightbox-container {
  position: relative;
  z-index: 2;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-image-box {
  position: relative;
  max-width: 100%;
  max-height: 80vh;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.lightbox-image-box img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
}

.lightbox-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
  color: #ffffff;
  padding: 1.25rem;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
}

.lightbox-btn {
  position: absolute;
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  cursor: pointer;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: var(--transition);
  z-index: 5;
}

.lightbox-btn:hover {
  background-color: var(--nintendo-red);
  border-color: var(--nintendo-red);
  transform: scale(1.1);
}

.lightbox-close {
  top: -60px;
  right: 0;
}

.lightbox-prev {
  left: -70px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-prev:hover {
  transform: translateY(-50%) scale(1.1);
}

.lightbox-next {
  right: -70px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-next:hover {
  transform: translateY(-50%) scale(1.1);
}

/* ============================================================
   Toast de Notificação
   ============================================================ */
.toast-notification {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background-color: #121417;
  color: #ffffff;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  font-weight: 700;
  box-shadow: var(--shadow-lg);
  border-left: 4px solid var(--emerald-green);
  transform: translateY(100px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  z-index: 2000;
}

.toast-notification.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.toast-notification i {
  color: var(--emerald-green);
}

/* ============================================================
   Rodapé
   ============================================================ */
.footer {
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border-color);
  margin-top: auto;
  padding: 3.5rem 0 2rem;
  font-size: 0.85rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2.5rem;
}

.footer-desc {
  margin-top: 1rem;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 480px;
}

.footer-links-group h4 {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.footer-links-group ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-links-group a {
  color: var(--text-secondary);
  transition: var(--transition);
}

.footer-links-group a:hover {
  color: var(--nintendo-red);
}

.footer-links-group span {
  color: var(--text-muted);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-color);
  padding-top: 1.5rem;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.disclaimer-badge {
  background-color: var(--bg-subtle);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  font-weight: 700;
}

/* ============================================================
   Media Queries & Responsividade
   ============================================================ */
@media (max-width: 1024px) {
  .game-header-layout {
    grid-template-columns: 280px 1fr;
    gap: 2rem;
    padding: 2rem;
  }

  .quick-specs-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .top-bar-right {
    display: none;
  }

  .nav-content {
    height: auto;
    padding: 0.85rem 1rem;
    flex-wrap: wrap;
    gap: 0.85rem;
  }

  .nav-search-bar {
    order: 3;
    max-width: 100%;
    width: 100%;
  }

  .spotlight-content {
    padding: 2rem 1.5rem;
  }

  .spotlight-title {
    font-size: 1.75rem;
  }

  .filters-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .toolbar-right {
    justify-content: space-between;
  }

  .game-header-layout {
    grid-template-columns: 1fr;
  }

  .game-cover-column {
    max-width: 320px;
    margin: 0 auto;
  }

  .tech-specs-table {
    grid-template-columns: 1fr;
  }

  .tech-row:nth-child(odd) {
    border-right: none;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }

  .lightbox-prev {
    left: 10px;
  }

  .lightbox-next {
    right: 10px;
  }
}
