@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@400;700&family=DM+Sans:wght@700&display=swap');

:root {
    --bg-raiz: #dfe6ec;
    --verde-salvia: #8DB596;
    --azul-foco: #2D5A7B;
    --texto: #5c7285;
}

/* --- BASE --- */
body {
  margin: 0;
  font-family: 'Quicksand', sans-serif;
  background-color: var(--bg-raiz);
  color: var(--texto);
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 20px;
}

/* --- NAVBAR --- */
.navbar-simple {
  padding: 20px 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: white;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.back-link { text-decoration: none; color: var(--azul-foco); font-weight: 700; }
.nav-logo { width: 80px; }
.user-avatar { font-size: 24px; background: #eee; padding: 10px; border-radius: 50%; }

/* --- HEADER --- */
.estante-header { text-align: center; margin-bottom: 50px; }
.estante-header h1 { font-family: 'DM Sans', sans-serif; color: var(--azul-foco); font-size: 32px; margin-bottom: 10px; }
.estante-header p { font-size: 16px; opacity: 0.8; }

/* --- GRID DE JOGOS --- */
.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.game-card {
  background: white;
  border-radius: 30px;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 10px 20px rgba(0,0,0,0.03);
  display: flex;
  flex-direction: column;
}

.game-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(45, 90, 123, 0.1);
}

.game-preview {
  height: 200px; /* Aumentado para dar mais respiro à imagem */
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* --- JOGO 01: BOLHAS MÁGICAS (PERFECCIONISTA) --- */

.preview-bolhas {
    /* Cor ajustada para ser quase idêntica ao fundo da página principal */
    background-color: #E6EDEF; 
}

/* A Bolha em CSS */
.ui-bubble {
    width: 90px;
    height: 90px;
    background: rgba(255, 255, 255, 0.6);
    border: 3px solid white;
    border-radius: 50%;
    position: relative;
    /* Sombras internas para parecer sabão/transparência */
    box-shadow: inset -5px -5px 15px rgba(255, 255, 255, 0.8), 
                0 10px 20px rgba(0,0,0,0.05);
    animation: floatBubble 3s infinite ease-in-out;
}

/* Pequeno reflexo no topo da bolha */
.bubble-reflection {
    position: absolute;
    top: 15%;
    left: 15%;
    width: 20px;
    height: 10px;
    background: white;
    border-radius: 50%;
    transform: rotate(-45deg);
    opacity: 0.8;
}

/* Mãozinha indicando o toque */
.tap-indicator {
    position: absolute;
    font-size: 45px;
    bottom: 30px;
    right: 25%;
    animation: tapHand 1.5s infinite;
    filter: drop-shadow(2px 4px 6px rgba(0,0,0,0.15));
}

/* --- INFORMAÇÕES DO CARD --- */
.game-info { padding: 25px; }
.game-info h3 { color: var(--azul-foco); margin-bottom: 8px; font-size: 21px; }
.game-info p { font-size: 14.5px; line-height: 1.5; margin-bottom: 18px; color: #7f8c8d; }

.game-tags { display: flex; gap: 8px; }
.game-tags span {
  font-size: 10px;
  background: var(--bg-raiz);
  padding: 5px 12px;
  border-radius: 20px;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--texto);
}

/* Cores das tags no hover do card de bolhas */
.card-bolhas:hover .game-tags span {
    background-color: var(--verde-salvia);
    color: white;
}

/* --- ANIMAÇÕES --- */

/* Movimento suave de flutuar */
@keyframes floatBubble {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-15px) scale(1.03); }
}

/* Movimento de clique/toque */
@keyframes tapHand {
    0%, 100% { transform: translate(0,0) scale(1); opacity: 1; }
    50% { transform: translate(-8px, -8px) scale(0.85); opacity: 0.8; }
}

/* --- ESTADOS GENÉRICOS PARA OUTROS CARDS --- */
.preview-soon { background-color: #eee; font-size: 40px; }
.game-card.locked { opacity: 0.6; cursor: default; }

@media (max-width: 600px) {
  .game-grid { grid-template-columns: 1fr; }
  .estante-header h1 { font-size: 26px; }
}


/* segundo card */

/* --- ESTILO ESPECÍFICO: PESQUISA MÁGICA --- */

.preview-pesquisa { 
    /* Cor ajustada para o azul bem clarinho do padrão Teaplay */
    background-color: #E9EDF2; 
    flex-direction: column; /* Coloca a barra em cima e a bola embaixo */
}

/* Miniatura da Barra de Busca do jogo */
.mini-search-bar {
    width: 160px;
    height: 40px;
    background: white;
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    margin-bottom: 15px;
    z-index: 2;
}

/* Texto B O L A dentro da barrinha */
.mini-text {
    font-size: 14px;
    font-weight: bold;
    color: var(--azul-foco);
    letter-spacing: 2px;
}

.mini-search-icon { 
    font-size: 14px; 
    opacity: 0.4; 
}

/* Objeto que aparece como resultado (A Bola) */
.search-result-object {
    font-size: 65px;
    filter: drop-shadow(0 5px 10px rgba(0,0,0,0.08));
    animation: popInObject 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) infinite alternate;
}

/* Animação para o objeto pulsar suavemente */
@keyframes popInObject {
    from { transform: scale(0.9); opacity: 0.9; }
    to { transform: scale(1.05); opacity: 1; }
}


/* terceiro card */

/* --- ESTILO ESPECÍFICO: TREM DAS LETRAS (POLIDO) --- */

.preview-trem { 
    /* Cor ajustada para o verde sálvia clarinho do padrão Teaplay */
    background-color: #ECF2EF; 
}

/* Grupo do trem centralizado */
.mini-train-group {
    display: flex;
    align-items: center; /* Alinha o vagão e o trem pelo meio */
    gap: 12px;
    z-index: 2;
    animation: trainSway 2.5s infinite ease-in-out;
}

/* O Vagão (Agora sem as rodinhas embaixo) */
.mini-wagon-css {
    width: 90px;
    height: 70px;
    background: var(--verde-salvia);
    border: 4px solid white;
    border-radius: 18px; /* Cantos mais arredondados e amigáveis */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: bold;
    color: white;
    position: relative;
    box-shadow: 0 6px 15px rgba(0,0,0,0.05);
}

/* Locomotiva */
.mini-locomotive-emoji {
    font-size: 75px;
    transform: scaleX(-1);
    line-height: 1;
    filter: drop-shadow(0 5px 10px rgba(0,0,0,0.08));
}

/* Linha do Trilho (opcional, para dar base) */
.mini-rail-line {
    position: absolute;
    bottom: 60px;
    width: 85%;
    height: 4px;
    background: rgba(0,0,0,0.04);
    border-radius: 10px;
}

/* Animação suave */
@keyframes trainSway {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.user-avatar {
    width: 40px;
    height: 40px;
    background-color: #6c68ad; /* Roxo Teaplay */
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    transition: 0.3s;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(108, 104, 173, 0.2);
}

.user-avatar:hover {
    transform: scale(1.1);
    background-color: #e74c3c; /* Fica vermelho ao passar o mouse para indicar saída */
}

/* Garante que a navbar-simple alinhe tudo corretamente */
.navbar-simple {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    background: white;
    border-bottom: 1px solid #eee;
}



/* 4º jogo


/* --- ESTILO ESPECÍFICO: ALIMENTE O MONSTRINHO --- */

.preview-monstrinho {
    background-color: #D6F0FF; /* Azul céu clarinho */
}

/* Corpo do Monstrinho */
.mini-monster-body {
    width: 80px;
    height: 80px;
    background-color: #32CD32;
    border-radius: 40px 40px 15px 15px;
    position: relative;
    border-bottom: 6px solid #228B22;
    z-index: 2;
}

/* Olhos */
.m-eye-l, .m-eye-r {
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    position: absolute;
    top: 15px;
    border: 2px solid #333;
}
.m-eye-l { left: 12px; }
.m-eye-r { right: 12px; }

/* Boca Aberta */
.m-mouth-open {
    width: 40px;
    height: 20px;
    background: #4B0082;
    border-radius: 0 0 20px 20px;
    position: absolute;
    bottom: 15px;
    left: 20px;
    animation: monsterGulp 1.5s infinite ease-in-out;
}

/* Frutinha voando */
.mini-fruit-fly {
    width: 30px;
    height: 30px;
    background: #FF4757;
    border-radius: 50%;
    border: 2px solid white;
    position: absolute;
    top: 30px;
    right: 20px;
    animation: fruitMove 1.5s infinite ease-in-out;
    z-index: 3;
}

/* Animações do Card */
@keyframes monsterGulp {
    0%, 100% { height: 15px; transform: scaleX(1); }
    50% { height: 25px; transform: scaleX(1.1); }
}

@keyframes fruitMove {
    0% { transform: translate(0, 0) scale(1); opacity: 0; }
    20% { opacity: 1; }
    80% { transform: translate(-60px, 40px) scale(0.8); opacity: 1; }
    100% { transform: translate(-65px, 45px) scale(0.5); opacity: 0; }
}

/* Cor da tag no hover */
.card-monstrinho:hover .game-tags span {
    background-color: #32CD32;
    color: white;
}