﻿/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   VELARIS - escolha.css (página de escolha c/ animações)
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { min-height: 100vh; }
body.escolha-body {
  background: #050509;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.72' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.022 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  color: #e8e8e8;
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  overflow-x: hidden;
  overflow-y: auto;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* â•â•â• FUNDO ANIMADO â•â•â• */
.escolha-bg {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  overflow: hidden;
}
.escolha-bg-grad {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, #050509 0%, #0a0a14 50%, #08080f 100%);
}

/* Orbes coloridos que pulsam e flutuam */
.escolha-bg-orb {
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.35;
  will-change: transform;
}
.escolha-bg-orb--red {
  top: -200px; left: -150px;
  background: radial-gradient(circle, #e50914 0%, transparent 70%);
  animation: orbFloat1 18s ease-in-out infinite;
}
.escolha-bg-orb--green {
  bottom: -200px; right: -150px;
  background: radial-gradient(circle, #22c55e 0%, transparent 70%);
  animation: orbFloat2 22s ease-in-out infinite;
}
@keyframes orbFloat1 {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: .35; }
  33%      { transform: translate(80px, 50px) scale(1.1); opacity: .45; }
  66%      { transform: translate(-40px, 100px) scale(0.95); opacity: .3; }
}
@keyframes orbFloat2 {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: .3; }
  50%      { transform: translate(-60px, -80px) scale(1.15); opacity: .4; }
}

/* Grid que pan suavemente */
.escolha-bg-grid {
  position: absolute; inset: -100px;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  animation: gridPan 30s linear infinite;
}
@keyframes gridPan {
  from { transform: translate(0, 0); }
  to   { transform: translate(48px, 48px); }
}

.escolha-bg-dots {
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: radial-gradient(ellipse at center, #000 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 20%, transparent 70%);
}

/* Noise sutil */
.escolha-bg-noise {
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.045 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  opacity: 0.6;
  mix-blend-mode: overlay;
}

/* Canvas de partículas */
.escolha-particles {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
}

/* â•â•â• TOPO â•â•â• */
.escolha-top {
  position: relative; z-index: 3;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 36px;
  max-width: 1400px; margin: 0 auto;
}
.escolha-top--user-only { justify-content: flex-end; }

.escolha-user {
  display: flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  backdrop-filter: blur(8px);
  padding: 8px 14px; border-radius: 999px;
  font-size: .85rem;
  animation: userSlide .6s cubic-bezier(.2,.9,.3,1.1) both;
}
.escolha-user-label { color: #888; }
.escolha-user-name { color: #fff; font-weight: 700; }
.escolha-user-logout {
  margin-left: 6px; color: #ff7a83;
  font-size: .78rem; font-weight: 700;
  padding: 4px 10px; border-radius: 999px;
  border: 1px solid rgba(229,9,20,.4);
  transition: all .15s;
}
.escolha-user-logout:hover { background: #e50914; color: #fff; border-color: #e50914; }
@keyframes userSlide { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }

/* â•â•â• MAIN â•â•â• */
.escolha-main {
  position: relative; z-index: 1;
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px 36px 60px;
  display: flex; flex-direction: column; align-items: center;
  min-height: calc(100vh - 90px);
}

/* Headline */
.escolha-headline {
  text-align: center;
  margin: 30px 0 50px;
  animation: heroEnter 1s cubic-bezier(.2,.9,.3,1.1) both;
}
@keyframes heroEnter {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: none; }
}

.escolha-pretitle {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .8rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .25em;
  color: #ff7a83;
  margin-bottom: 18px;
  padding: 6px 14px;
  background: rgba(229,9,20,.08);
  border: 1px solid rgba(229,9,20,.2);
  border-radius: 999px;
}
.escolha-pretitle-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #e50914;
  box-shadow: 0 0 10px #e50914;
  animation: dotPulse 1.6s ease-in-out infinite;
}
@keyframes dotPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .5; transform: scale(.7); }
}

/* Título com shimmer */
.escolha-title {
  position: relative;
  font-family: 'Orbitron', 'Segoe UI', sans-serif;
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  font-weight: 900; letter-spacing: .04em;
  margin-bottom: 14px;
  line-height: 1.05;
  background: linear-gradient(180deg, #fff 20%, rgba(255,255,255,.35) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 80px rgba(255,255,255,.08);
}
.escolha-title::after {
  content: attr(data-text);
  position: absolute; inset: 0;
  background: linear-gradient(120deg,
    transparent 0%,
    transparent 40%,
    rgba(255,255,255,.55) 50%,
    transparent 60%,
    transparent 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: titleShimmer 4.5s ease-in-out infinite;
  pointer-events: none;
}
@keyframes titleShimmer {
  0%   { background-position: 200% 0; }
  60%  { background-position: -100% 0; }
  100% { background-position: -100% 0; }
}

.escolha-sub {
  color: #9898a8; font-size: 1rem; max-width: 480px;
  margin: 0 auto;
  font-family: 'Inter', sans-serif;
  letter-spacing: .01em;
}

/* â•â•â• CARDS â•â•â• */
.escolha-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  width: 100%; max-width: 1440px;
  margin-bottom: 50px;
  perspective: 1400px;
}

.escolha-card {
  position: relative;
  height: 500px;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(15,15,20,.4);
  box-shadow:
    0 18px 50px rgba(0,0,0,.55),
    inset 0 1px 0 rgba(255,255,255,.05);
  transform-style: preserve-3d;
  transform: perspective(1400px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .35s cubic-bezier(.2,.9,.3,1.1), border-color .25s, box-shadow .4s;
  /* entrada controlada pelo animations.js (Motion One) */
  cursor: pointer;
}
@keyframes cardEnter {
  from { opacity: 0; transform: translateY(40px) scale(.95); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.escolha-card:hover {
  border-color: rgba(255,255,255,.22);
  box-shadow:
    0 30px 80px rgba(0,0,0,.75),
    0 0 0 1px rgba(255,255,255,.06) inset,
    0 0 60px rgba(229,9,20,.15);
}
.escolha-card--minecraft:hover {
  box-shadow:
    0 30px 80px rgba(0,0,0,.75),
    0 0 0 1px rgba(255,255,255,.06) inset,
    0 0 60px rgba(34,197,94,.2);
}
.escolha-card--loja:hover {
  box-shadow:
    0 30px 80px rgba(0,0,0,.75),
    0 0 0 1px rgba(255,255,255,.06) inset,
    0 0 60px rgba(96,165,250,.22);
}

/* Glow externo que pulsa atrás de cada card */
.escolha-card-glow {
  position: absolute; inset: -3px;
  border-radius: 26px;
  background: linear-gradient(135deg, #e50914 0%, #ff4d5b 50%, #e50914 100%);
  filter: blur(18px);
  opacity: 0;
  z-index: -1;
  transition: opacity .35s ease;
}
.escolha-card--minecraft .escolha-card-glow {
  background: linear-gradient(135deg, #22c55e 0%, #4ade80 50%, #22c55e 100%);
}
.escolha-card--loja .escolha-card-glow {
  background: linear-gradient(135deg, #2563eb 0%, #3b82f6 55%, #60a5fa 100%);
}
.escolha-card:hover .escolha-card-glow { opacity: .55; }

/* Imagem de fundo */
.escolha-card-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 1.1s cubic-bezier(.2,.9,.3,1.1), filter .4s;
  filter: saturate(.9);
}
.escolha-card:hover .escolha-card-bg {
  transform: scale(1.08);
  filter: saturate(1.1);
}
/* Fallback do MC caso a imagem não esteja salva ainda */
.escolha-card-bg--mc {
  background-color: #1a2e1a;
  background-image:
    radial-gradient(ellipse at 30% 30%, #3b8c3b 0%, transparent 65%),
    radial-gradient(ellipse at 70% 70%, #1f4a1f 0%, transparent 60%),
    linear-gradient(135deg, #1a2e1a 0%, #0d180d 100%);
}
.escolha-card-bg--loja {
  background-color: #081225;
  background-position: center 42%;
  filter: saturate(1.04) contrast(1.02);
}

/* Sombra escura por cima da imagem pra texto ficar legível */
.escolha-card-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(7,7,11,.05) 0%, rgba(7,7,11,.4) 45%, rgba(7,7,11,.95) 95%, rgba(7,7,11,1) 100%);
  transition: background .35s ease;
}
.escolha-card--filmes:hover .escolha-card-shade {
  background:
    linear-gradient(180deg, rgba(229,9,20,.06) 0%, rgba(7,7,11,.4) 45%, rgba(7,7,11,.97) 100%);
}
.escolha-card--minecraft:hover .escolha-card-shade {
  background:
    linear-gradient(180deg, rgba(34,197,94,.06) 0%, rgba(7,7,11,.4) 45%, rgba(7,7,11,.97) 100%);
}
.escolha-card--loja:hover .escolha-card-shade {
  background:
    linear-gradient(180deg, rgba(96,165,250,.08) 0%, rgba(7,7,11,.4) 45%, rgba(7,7,11,.97) 100%);
}

/* Reflexo que segue o mouse (efeito glossy) */
.escolha-card-shine {
  position: absolute; inset: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%),
    rgba(255,255,255,.12) 0%,
    rgba(255,255,255,0) 35%);
  opacity: 0;
  transition: opacity .3s ease;
  pointer-events: none;
  mix-blend-mode: screen;
}
.escolha-card:hover .escolha-card-shine { opacity: 1; }

/* Conteúdo interno */
.escolha-card-inner {
  position: relative; z-index: 2;
  height: 100%;
  display: flex; flex-direction: column;
  padding: 32px;
  justify-content: flex-end;
}

.escolha-card-icon {
  position: absolute; top: 26px; left: 26px;
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.6);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px;
  color: #fff;
  backdrop-filter: blur(8px);
  transition: transform .3s ease, border-color .3s, box-shadow .3s;
}
.escolha-card-icon svg { width: 26px; height: 26px; }
.escolha-card:hover .escolha-card-icon {
  transform: scale(1.08) rotate(-3deg);
}
.escolha-card--filmes .escolha-card-icon {
  border-color: rgba(229,9,20,.4);
  color: #ff7a83;
}
.escolha-card--filmes:hover .escolha-card-icon {
  border-color: rgba(229,9,20,.7);
  box-shadow: 0 0 22px rgba(229,9,20,.4);
}
.escolha-card-icon--mc {
  border-color: rgba(34,197,94,.45) !important;
  color: #86efac;
}
.escolha-card:hover .escolha-card-icon--mc {
  border-color: rgba(34,197,94,.8) !important;
  box-shadow: 0 0 22px rgba(34,197,94,.45);
}
.escolha-card-icon--loja {
  border-color: rgba(96,165,250,.52) !important;
  color: #93c5fd;
}
.escolha-card:hover .escolha-card-icon--loja {
  border-color: rgba(96,165,250,.92) !important;
  box-shadow: 0 0 22px rgba(96,165,250,.45);
}

.escolha-card-tag {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: .68rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .15em;
  background: rgba(229,9,20,.18);
  color: #ff9ba0;
  border: 1px solid rgba(229,9,20,.35);
  padding: 5px 12px; border-radius: 20px;
  margin-bottom: 14px;
  width: fit-content;
  backdrop-filter: blur(6px);
}
.escolha-card-tag-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #e50914;
  box-shadow: 0 0 8px #e50914;
  animation: dotPulse 1.5s ease-in-out infinite;
}
.escolha-card-tag--mc {
  background: rgba(34,197,94,.18);
  color: #86efac;
  border-color: rgba(34,197,94,.35);
}
.escolha-card-tag--mc .escolha-card-tag-dot {
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e;
}
.escolha-card-tag--loja {
  background: rgba(59,130,246,.2);
  color: #bfdbfe;
  border-color: rgba(96,165,250,.42);
}
.escolha-card-tag--loja .escolha-card-tag-dot {
  background: #60a5fa;
  box-shadow: 0 0 8px #60a5fa;
}

.escolha-card-title {
  font-family: 'Space Grotesk', 'Orbitron', sans-serif;
  font-size: 2rem; font-weight: 800; letter-spacing: -.02em;
  color: #fff; margin-bottom: 12px;
  text-shadow: 0 4px 20px rgba(0,0,0,.7);
  transition: transform .3s ease;
}
.escolha-card:hover .escolha-card-title {
  transform: translateY(-2px);
}

.escolha-card-desc {
  color: #d1d1d8; font-size: .95rem;
  margin-bottom: 18px; max-width: 92%;
  text-shadow: 0 2px 8px rgba(0,0,0,.6);
  line-height: 1.5;
}

.escolha-card-stats {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 22px;
  padding: 12px 16px;
  background: rgba(0,0,0,.45);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  width: fit-content;
  backdrop-filter: blur(4px);
}
.escolha-card-stat {
  font-size: .82rem; color: #b8b8c0;
}
.escolha-card-stat strong {
  color: #fff;
  font-size: 1rem; font-weight: 800;
  margin-right: 4px;
}
.escolha-card-stat-sep {
  width: 1px; height: 16px;
  background: linear-gradient(180deg, transparent, rgba(229,9,20,.5), transparent);
}
.escolha-card-stat-sep--mc {
  background: linear-gradient(180deg, transparent, rgba(34,197,94,.5), transparent);
}
.escolha-card-stat-sep--loja {
  background: linear-gradient(180deg, transparent, rgba(96,165,250,.55), transparent);
}

.escolha-card-btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: linear-gradient(90deg, #e50914 0%, #ff1a2d 100%);
  color: #fff;
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-weight: 700; font-size: .88rem;
  padding: 12px 22px;
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(229,9,20,.4);
  transition: transform .15s, box-shadow .2s, filter .15s;
  width: fit-content;
  position: relative; overflow: hidden;
}
.escolha-card-btn::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.3), transparent);
  transform: translateX(-100%);
  transition: transform .6s ease;
}
.escolha-card:hover .escolha-card-btn::before {
  transform: translateX(100%);
}
.escolha-card:hover .escolha-card-btn {
  filter: brightness(1.12);
  box-shadow: 0 12px 32px rgba(229,9,20,.6);
}
.escolha-card-btn svg {
  width: 18px; height: 18px;
  transition: transform .25s;
}
.escolha-card:hover .escolha-card-btn svg { transform: translateX(6px); }

.escolha-card-btn--mc {
  background: linear-gradient(90deg, #22c55e 0%, #15803d 100%);
  box-shadow: 0 8px 24px rgba(34,197,94,.4);
}
.escolha-card:hover .escolha-card-btn--mc {
  box-shadow: 0 12px 32px rgba(34,197,94,.6);
}
.escolha-card-btn--loja {
  background: linear-gradient(90deg, #1d4ed8 0%, #2563eb 52%, #3b82f6 100%);
  box-shadow: 0 8px 24px rgba(59,130,246,.42);
}
.escolha-card:hover .escolha-card-btn--loja {
  box-shadow: 0 12px 32px rgba(96,165,250,.5);
}

/* Footer */
.escolha-foot {
  margin-top: auto;
  text-align: center;
  color: #666;
  font-size: .82rem;
  padding-top: 30px;
  opacity: 0;
  animation: footEnter 1s ease 0.8s forwards;
}
@keyframes footEnter { to { opacity: 1; } }

/* â•â•â• RESPONSIVO â•â•â• */
@media (max-width: 880px) {
  .escolha-top { padding: 18px 22px; }
  .escolha-main { padding: 20px 22px 40px; }
  .escolha-headline { margin: 20px 0 32px; }
  .escolha-cards {
    grid-template-columns: 1fr;
    gap: 18px;
    perspective: none;
  }
  .escolha-card {
    height: 400px;
    transform: none !important;
  }
  .escolha-card-inner { padding: 24px; }
  .escolha-card-icon {
    width: 48px; height: 48px;
    top: 18px; left: 18px;
  }
  .escolha-card-icon svg { width: 22px; height: 22px; }
  .escolha-card-title { font-size: 1.7rem; }
  .escolha-card-desc { font-size: .88rem; }
  .escolha-bg-orb { width: 400px; height: 400px; }
}
@media (max-width: 1180px) and (min-width: 881px) {
  .escolha-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 480px) {
  .escolha-user-label { display: none; }
  .escolha-card { height: 360px; }
  .escolha-card-stats { padding: 8px 12px; gap: 10px; }
  .escolha-card-stat { font-size: .76rem; }
  .escolha-card-stat strong { font-size: .9rem; }
}

/* Acessibilidade: respeitar preferência por menos movimento */
@media (prefers-reduced-motion: reduce) {
  .escolha-bg-orb, .escolha-bg-grid, .escolha-title::after,
  .escolha-pretitle-dot, .escolha-card-tag-dot { animation: none !important; }
  .escolha-card, .escolha-card-bg { transition: none !important; }
  .escolha-particles { display: none; }
}

