/* assets/style.css (Versão Final com Tema Claro Padronizado) */

/* Importa as fontes do Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&family=Teko:wght@700&display=swap');

/* Paleta de Cores Global */
:root {
    --cor-primaria: #D9433A;      /* Vermelho da sua logo */
    --cor-fundo: #f8f9fa;         /* Um cinza bem claro para o fundo */
    --cor-superficie: #ffffff;   /* Branco para cards, modais, etc. */
    --cor-texto: #212529;         /* Preto suave para textos principais */
    --cor-texto-secundario: #6c757d; /* Cinza para textos de apoio */
    --cor-borda: #dee2e6;
}

/* Estilos gerais do corpo da página */
body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    background-color: var(--cor-fundo);
    color: var(--cor-texto);
    line-height: 1.6;
}

/* Container principal para centralizar o conteúdo */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Cabeçalho do site */
.header {
    padding: 20px 0;
    text-align: center;
    background-color: var(--cor-superficie);
    border-bottom: 1px solid var(--cor-borda);
}

.logo {
    max-width: 200px;
    margin-bottom: 10px;
}

/* Seção principal de chamada (Hero) */
.hero {
    text-align: center;
    padding: 100px 0;
}

.hero h1 {
    font-family: 'Teko', sans-serif;
    font-size: 4rem;
    margin: 0 0 10px 0;
    color: var(--cor-texto);
    letter-spacing: 1px;
}

.hero p {
    font-size: 1.2rem;
    color: var(--cor-texto-secundario);
    margin-bottom: 40px;
}

/* Botões de Ação (Call to Action) */
.cta-buttons a {
    text-decoration: none;
    padding: 15px 30px;
    border-radius: 5px;
    font-weight: bold;
    margin: 0 10px;
    transition: transform 0.2s, box-shadow 0.2s, background-color 0.2s, color 0.2s;
    display: inline-block;
}

.cta-primary {
    background-color: var(--cor-primaria);
    color: white;
    box-shadow: 0 4px 15px rgba(217, 67, 58, 0.3);
}

.cta-secondary {
    background-color: transparent;
    border: 2px solid var(--cor-primaria);
    color: var(--cor-primaria);
}

.cta-buttons a:hover {
    transform: translateY(-3px);
}

.cta-primary:hover {
    box-shadow: 0 6px 20px rgba(217, 67, 58, 0.4);
}

.cta-secondary:hover {
    background-color: var(--cor-primaria);
    color: white;
}

/* Seção de Recursos / Jogos em Destaque */
.features {
    padding: 80px 20px;
    text-align: center;
    border-top: 1px solid var(--cor-borda);
}

.features h2 {
    font-family: 'Teko', sans-serif;
    font-size: 3rem;
    margin-top: 0;
    margin-bottom: 50px;
    color: var(--cor-texto);
}

/* Seção de Features individuais (Devs e Jogadores) */
.feature-section {
    display: flex;
    align-items: center;
    gap: 50px;
    padding: 80px 0;
    border-top: 1px solid var(--cor-borda);
}

.feature-section.reverse {
    flex-direction: row-reverse;
}

.feature-text {
    flex: 1;
}

.feature-image {
    flex: 1;
}

.feature-image img {
    width: 100%;
    border-radius: 8px;
}

.feature-text h2 {
    font-family: 'Teko', sans-serif;
    font-size: 3rem;
    color: var(--cor-primaria);
    margin: 0;
}

.feature-text h3 {
    font-size: 1.8rem;
    margin: 10px 0 20px 0;
    color: var(--cor-texto);
}

.feature-text ul {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

.feature-text ul li {
    margin-bottom: 10px;
    font-size: 1.1rem;
}


/* Grade de cards para os jogos */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    text-align: left;
}

.game-card {
    background-color: var(--cor-superficie);
    border-radius: 8px;
    border: 1px solid var(--cor-borda);
    overflow: hidden;
    text-decoration: none;
    color: var(--cor-texto);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.game-card img {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

.game-card h3 {
    margin: 15px;
    font-size: 1.2rem;
    flex-grow: 1;
}

.game-card p {
    margin: 0 15px 15px 15px;
    font-size: 0.9rem;
    color: var(--cor-texto-secundario);
}

.footer {
    text-align: center;
    padding: 40px 0;
    margin-top: 0;
    background-color: var(--cor-superficie);
    border-top: 1px solid var(--cor-borda);
    color: var(--cor-texto-secundario);
}

.footer a {
    color: var(--cor-primaria);
    text-decoration: none;
}

/* ========================================================== */
/* MEDIA QUERIES PARA RESPONSIVIDADE */
/* ========================================================== */

/* Estilos para telas com 768px de largura ou menos (tablets e celulares) */
@media (max-width: 768px) {
    
    .hero h1 {
        font-size: 3rem; /* Diminui o título principal */
    }

    .cta-buttons {
        display: flex;
        flex-direction: column; /* Botões um em cima do outro */
        gap: 15px;
        align-items: center;
    }

    .cta-buttons a {
        width: 80%; /* Faz os botões ocuparem mais largura */
        margin: 0;
    }

    /* A mudança mais importante: faz o layout de imagem/texto virar uma coluna */
    .feature-section,
    .feature-section.reverse {
        flex-direction: column;
        gap: 30px;
        padding: 50px 0;
    }
}

/* ========================================================== */
/* ESTILOS PARA ANIMAÇÃO DE SCROLL (FADE IN + SLIDE UP) */
/* ========================================================== */

/* Esta classe define o estado inicial dos elementos: invisíveis e um pouco para baixo */
.hidden {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* Esta classe será adicionada pelo JavaScript para tornar os elementos visíveis */
.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Estilos para a seção Hall da Fama */
.hall-of-fame {
    padding: 80px 20px;
    text-align: center;
}

.hall-of-fame h2 {
    font-family: 'Teko', sans-serif;
    font-size: 3rem;
    margin-top: 0;
    margin-bottom: 50px;
    color: var(--cor-texto);
}

.player-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
}

.player-card {
    background-color: var(--cor-superficie);
    border: 1px solid var(--cor-borda);
    border-radius: 8px;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.1rem;
}

.player-card .username {
    font-weight: bold;
}

.player-card .trophies {
    color: var(--cor-primaria);
    font-weight: bold;
}

.hall-of-fame-description {
    margin-top: 30px;
    font-size: 1rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    color: var(--cor-texto-secundario);
    font-style: italic;
}