@import url("https://fonts.googleapis.com/css2?family=Sora:wght@400;500;600;700;800&display=swap");

/* ============================= */
/* ROOT / VARIÁVEIS */
/* ============================= */
:root {
  --bg: #050712;
  --bg-soft: #0b1020;
  --card: rgba(255, 255, 255, 0.06);
  --card-strong: rgba(255, 255, 255, 0.1);
  --text: #ffffff;
  --muted: #94a3b8;
  --border: rgba(255, 255, 255, 0.1);
  --primary: #8b5cf6;
  --secondary: #06b6d4;
  --pink: #ec4899;
  --radius: 24px;
  --transition: 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: "Sora", sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

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

button,
input {
  font-family: inherit;
}

button {
  cursor: pointer;
  border: none;
}

/* ============================= */
/* BACKGROUND DA PÁGINA */
/* ============================= */
.page-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at top left, rgba(139, 92, 246, 0.28), transparent 32%),
    radial-gradient(circle at top right, rgba(6, 182, 212, 0.2), transparent 28%),
    radial-gradient(circle at bottom, rgba(236, 72, 153, 0.12), transparent 30%),
    linear-gradient(135deg, #050712 0%, #080b18 45%, #111133 100%);
}

.page-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, black, transparent 85%);
}

/* ============================= */
/* HEADER */
/* ============================= */
.header {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 18px 6%;
  backdrop-filter: blur(18px);
  background: rgba(5, 7, 18, 0.72);
  border-bottom: 1px solid var(--border);
}

.navbar {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 6%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

/* ============================= */
/* LOGO */
/* ============================= */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  display: block;
}

.logo-text {
  display: flex;
  align-items: baseline;
  gap: 4px;
  font-size: 1.70rem;
  letter-spacing: -0.04em;
}

.logo-text strong {
  color: #ffffff;
  font-weight: 800;
}

.logo-text span {
  color: rgb(138, 92, 246);
  font-weight: 700;
}

/* ============================= */
/* NAV LINKS */
/* ============================= */
.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--muted);
  font-size: 0.92rem;
}

.nav-links a {
  transition: var(--transition);
}

.nav-links a:hover {
  color: var(--text);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* ============================= */
/* LANGUAGE SWITCHER */
/* ============================= */
.language-switcher {
  display: flex;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
}

.language-switcher button {
  padding: 8px 12px;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 0.75rem;
  transition: var(--transition);
}

.language-switcher button:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

/* ============================= */
/* BOTÕES */
/* ============================= */
.nav-button,
.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 600;
  transition: var(--transition);
}

.nav-button,
.primary-button {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  box-shadow: 0 0 28px rgba(139, 92, 246, 0.32);
}

.nav-button:hover,
.primary-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 38px rgba(139, 92, 246, 0.5);
}

.secondary-button {
  color: var(--text);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.05);
}

.secondary-button:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

/* ============================= */
/* LAYOUT PRINCIPAL */
/* ============================= */
main {
  max-width: 1240px;
  margin: 0 auto;
  padding: 70px 6% 0;
}

/* ============================= */
/* HERO */
/* ============================= */
.hero {
  min-height: 620px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 56px;
}

.eyebrow {
  display: inline-flex;
  margin-bottom: 18px;
  padding: 8px 13px;
  border-radius: 999px;
  color: #c4b5fd;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.22);
}

.hero h1 {
  max-width: 760px;
  font-size: clamp(3rem, 7vw, 6.4rem);
  line-height: 0.95;
  letter-spacing: -0.08em;
  margin-bottom: 24px;
}

.hero p {
  max-width: 620px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.8;
}

.hero-actions {
  margin-top: 34px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* ============================= */
/* HERO CARD */
/* ============================= */
.hero-card {
  position: relative;
  min-height: 520px;
  border-radius: 36px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  border: 1px solid var(--border);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.45),
    0 0 80px rgba(139, 92, 246, 0.22);
  transition: background-image 0.8s ease, transform 0.3s ease;
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  pointer-events: none;
}

.hero-card-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top right, rgba(139, 92, 246, 0.5), transparent 38%),
    radial-gradient(circle at bottom left, rgba(6, 182, 212, 0.35), transparent 35%);
}

.hero-card-content {
  position: absolute;
  left: 32px;
  right: 32px;
  bottom: 32px;
}

.hero-card-content > span {
  color: #c4b5fd;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-card-content h2 {
  margin-top: 10px;
  font-size: clamp(2rem, 4vw, 3.2rem);
  letter-spacing: -0.05em;
}

.hero-card-content p {
  margin-top: 10px;
  color: #cbd5e1;
}

/* ============================= */
/* HERO STATS */
/* ============================= */
.hero-stats {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.hero-stats div {
  padding: 14px 10px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  min-width: 0;
}

.hero-stats strong {
  display: block;
  font-size: 1.2rem;
}

.hero-stats span {
  margin-top: 4px;
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
  word-break: break-word;
}

/* ============================= */
/* SEÇÕES */
/* ============================= */
.search-section,
.games-section,
.categories-section {
  padding: 80px 0 0;
}

.section-header {
  margin-bottom: 28px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.section-header h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  letter-spacing: -0.06em;
}

.section-header p {
  max-width: 480px;
  color: var(--muted);
  line-height: 1.7;
}

.section-link {
  color: #c4b5fd;
  font-weight: 700;
}

/* ============================= */
/* SEARCH BOX */
/* ============================= */
.search-box {
  display: flex;
  gap: 12px;
  padding: 12px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  backdrop-filter: blur(16px);
}

.search-box input {
  flex: 1;
  min-height: 58px;
  padding: 0 18px;
  border: none;
  outline: none;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-size: 1rem;
}

.search-box input::placeholder {
  color: #64748b;
}

.search-box button {
  min-width: 140px;
  border-radius: 18px;
  color: white;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  transition: var(--transition);
}

.search-box button:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(139, 92, 246, 0.45);
}

/* ============================= */
/* GAMES GRID */
/* ============================= */
.games-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

/* ============================= */
/* GAME CARD */
/* ============================= */
.game-card {
  position: relative;
  min-height: 330px;
  padding: 18px;
  display: flex;
  align-items: end;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--border);
  transition: var(--transition);
  cursor: pointer;
}

.game-card:hover {
  transform: translateY(-8px);
  border-color: rgba(139, 92, 246, 0.4);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.game-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(5, 7, 18, 0.95), rgba(5, 7, 18, 0.08)),
    var(--game-image);
  background-size: cover;
  background-position: center;
  transition: var(--transition);
}

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

.game-card-content {
  position: relative;
  z-index: 1;
}

.game-card-content span {
  color: #c4b5fd;
  font-size: 0.75rem;
  font-weight: 700;
}

.game-card-content h3 {
  margin-top: 8px;
  font-size: 1.25rem;
}

.game-card-content p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.85rem;
}

/* ============================= */
/* FAVORITOS */
/* ============================= */
.favorite-button {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.45);
  color: white;
  font-size: 1.1rem;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: 0.25s ease;
}

.favorite-button:hover {
  transform: scale(1.1);
  background: rgba(139, 92, 246, 0.35);
}

/* ============================= */
/* CATEGORIAS */
/* ============================= */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}

.category-card {
  min-height: 92px;
  border-radius: 22px;
  color: var(--text);
  font-weight: 700;
  background:
    linear-gradient(135deg, rgba(139, 92, 246, 0.14), rgba(6, 182, 212, 0.08));
  border: 1px solid var(--border);
  transition: var(--transition);
}

.category-card:hover {
  transform: translateY(-5px);
  border-color: rgba(139, 92, 246, 0.45);
  box-shadow: 0 18px 42px rgba(139, 92, 246, 0.16);
}

/* ============================= */
/* MODAL DO GAME */
/* ============================= */
.game-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(12px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

.game-modal.active {
  display: flex;
}

.game-modal-content {
  width: 900px;
  max-width: 90%;
  background: #0b1020;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  overflow: hidden;
}

.modal-banner {
  height: 320px;
  background-size: cover;
  background-position: center;
}

.modal-info {
  padding: 28px;
}

.close-modal {
  position: absolute;
  top: 30px;
  right: 30px;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: white;
  cursor: pointer;
}

/* ============================= */
/* MENU MOBILE */
/* ============================= */
.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: white;
  font-size: 1.4rem;
}

.mobile-menu {
  position: fixed;
  inset: 0 0 0 auto;
  width: 340px;
  max-width: 85%;
  padding: 36px;
  background: rgba(11, 16, 32, 0.98);
  backdrop-filter: blur(18px);
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 28px;
  transform: translateX(100%);
  transition: 0.3s ease;
  z-index: 999;
}

.mobile-menu.active {
  transform: translateX(0);
}

.mobile-menu span {
  color: #a78bfa;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.2em;
}

.mobile-menu a {
  font-size: 2rem;
  font-weight: 800;
}

.close-menu {
  align-self: flex-end;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: white;
  font-size: 1.2rem;
}

.mobile-menu-button {
  margin-top: auto;
  padding: 16px 20px;
  border-radius: 18px;
  text-align: center;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
}

/* ============================= */
/* FOOTER */
/* ============================= */
.footer {
  max-width: 1240px;
  margin: 90px auto 0;
  padding: 30px 6%;
  color: var(--muted);
  border-top: 1px solid var(--border);
  text-align: center;
}

/* ============================= */
/* AUTOFILL INPUT */
/* ============================= */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0px 1000px rgba(142, 39, 245, 0.055) inset;
  -webkit-text-fill-color: white;
  border: 1px solid var(--border);
  transition: background-color 5000s ease-in-out 0s;
}

.mobile-language-switcher {
  display: flex;
  gap: 10px;
}

.mobile-language-switcher button {
  flex: 1;
  padding: 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  color: white;
  border: 1px solid rgba(255,255,255,0.12);
  font-weight: 700;
}
