/* GERAL */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;700;800&display=swap');

:root {
    --background: #121212;
    --surface: #1E1E1E;
    --primary: #00FF88;
    --on-surface: #FFFFFF;
    --on-surface-secondary: #A0A0A0;
    --color-green: #22c55e;
    --color-yellow: #facc15;
    --color-red: #ef4444;
}

body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    background-color: var(--background);
    color: var(--on-surface);
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

/* CABEÇALHO */
header {
    text-align: center;
    padding: 30px 0;
}

.logo {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--on-surface);
}

.logo span {
    color: var(--primary);
}

p.subtitle {
    font-size: 1rem;
    color: var(--on-surface-secondary);
    margin-bottom: 30px;
}

p.subtitle strong {
    color: var(--primary);
}

/* GRADE DE JOGOS */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

/* CARD DE JOGO COM MODIFICAÇÃO */
.game-card {
    display: block;
    position: relative;
    border-radius: 10px;
    overflow: hidden; /* Essencial para que a imagem não vaze */
    text-decoration: none;
    color: var(--on-surface);
    transition: transform 0.3s ease;
    border: 1px solid transparent;
    aspect-ratio: 2 / 3; /* Proporção mais vertical (2 de largura para 3 de altura) */
}

.game-card:hover {
    transform: scale(1.05);
    border-color: var(--primary);
}

/* IMAGEM DE FUNDO COM MODIFICAÇÃO */
.game-background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Garante que a imagem preencha todo o espaço, cortando o excesso */
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 10%, transparent 60%);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 12px;
    box-sizing: border-box;
}

.platform-chip {
    align-self: flex-start;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
}

.percentage-info {
    width: 100%;
    text-align: center;
}

.percentage-text {
    font-size: 2.8rem;
    font-weight: 800;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.9);
    color: var(--on-surface);
}

/* CORES DAS PORCENTAGENS */
.percentage-text.color-green {
    color: var(--color-green);
}
.percentage-text.color-yellow {
    color: var(--color-yellow);
}
.percentage-text.color-red {
    color: var(--color-red);
}

/* FOOTER */
footer {
    text-align: center;
    padding: 40px 20px 20px;
    color: var(--on-surface-secondary);
    font-size: 0.9rem;
}