* {
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #1e1e1e;
    color: white;
    margin: 0;
}

main {
    padding: 30px;
}


/* =========================
   CABEÇALHO
========================= */

header {
    background-color: #111;
    padding: 20px;

    display: flex;
    justify-content: space-between;
    align-items: center;

    border-bottom: 2px solid #f85050;
}

header h1 {
    margin: 0;
}

nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

nav a {
    color: #ccc;
    text-decoration: none;
    font-weight: bold;

    transition: 0.3s;
}

nav a:hover,
nav a.ativo {
    color: #f85050;
}


/* =========================
   CONTROLES
========================= */

.controles {
    background-color: #111;

    padding: 15px;
    margin-bottom: 25px;

    border-radius: 5px;

    display: flex;
    gap: 20px;

    flex-wrap: wrap;
}

.controle {
    display: flex;
    align-items: center;
    gap: 8px;
}

.controles label {
    font-weight: bold;
    color: #e0e0e0;
}

.controles select {
    padding: 8px 12px;

    background-color: #2b2b2b;
    color: white;

    border: 1px solid #444;
    border-radius: 4px;

    cursor: pointer;
}


/* =========================
   TÍTULO DO ANO
========================= */

.titulo-ano {
    font-size: 24px;

    color: #f85050;

    border-bottom: 1px solid #444;

    padding-bottom: 8px;

    margin-top: 40px;
    margin-bottom: 20px;

    width: 100%;
}

.titulo-ano:first-child {
    margin-top: 0;
}


/* =========================
   GRADE DOS JOGOS
========================= */

.grade-jogos {
    display: flex;

    gap: 25px;

    flex-wrap: wrap;

    justify-content: flex-start;

    margin-bottom: 40px;
}


/* =========================
   CARD
========================= */

.jogo {
    background-color: #2b2b2b;

    width: 180px;

    padding: 15px;

    border-radius: 10px;

    border: 1px solid #f85050;

    transition: 0.3s;

    display: flex;
    flex-direction: column;

    justify-content: space-between;
}

.jogo:hover {
    transform: translateY(-8px) scale(1.03);

    box-shadow:
        0 10px 25px
        rgba(0, 0, 0, 0.5);
}


/* =========================
   NOME
========================= */

.jogo h3 {
    margin-top: 0;
    margin-bottom: 12px;

    text-align: center;

    font-size: 14px;

    min-height: 40px;

    display: flex;
    align-items: center;
    justify-content: center;
}


/* =========================
   CAPA
========================= */

.jogo img {
    width: 100%;

    height: 240px;

    object-fit: cover;
    object-position: center;

    border-radius: 5px;

    background-color: #111;
}


/* =========================
   NOTA
========================= */

.jogo p {
    margin: 12px 0 8px 0;

    text-align: center;

    font-weight: bold;

    color: #ccc;
}


/* =========================
   BOTÃO
========================= */

.jogo button {
    width: 100%;

    padding: 10px;

    border: none;

    border-radius: 5px;

    background-color: #e0e0e0;

    cursor: pointer;

    font-weight: bold;

    transition: 0.2s;
}

.jogo button:hover {
    background-color: #ffffff;
}


/* =========================
   STATUS
========================= */

.status {
    display: inline-block;

    padding: 5px 12px;

    font-size: 11px;

    font-weight: bold;

    border-radius: 20px;

    text-align: center;

    margin: 12px auto 0 auto;

    width: fit-content;
}

.nao-iniciada {
    background-color: #234e65;
    color: #a3d2e2;
}

.vendo-jogando {
    background-color: #fef08a;
    color: #854d0e;
}

.terminado {
    background-color: #bbf7d0;
    color: #166534;
}

.drop {
    background-color: #b91c1c;
    color: #ffffff;
}

.geladeira {
    background-color: #1d4ed8;
    color: #ffffff;
}


/* =========================
   PÁGINA INICIAL
========================= */

.hero {
    min-height: 550px;

    display: flex;

    justify-content: center;
    align-items: center;

    text-align: center;
}

.hero-conteudo {
    max-width: 700px;
}

.hero h2 {
    font-size: 42px;

    margin-bottom: 15px;
}

.hero p {
    color: #bbb;

    font-size: 18px;

    line-height: 1.6;

    margin-bottom: 30px;
}

.botoes-chamada {
    display: flex;

    justify-content: center;

    gap: 15px;

    flex-wrap: wrap;
}

.botao-principal,
.botao-secundario {
    padding: 12px 22px;

    border-radius: 6px;

    text-decoration: none;

    font-weight: bold;

    transition: 0.3s;
}

.botao-principal {
    background-color: #f85050;
    color: white;
}

.botao-principal:hover {
    background-color: #ff6b6b;

    transform: translateY(-3px);
}

.botao-secundario {
    border: 1px solid #f85050;

    color: #f85050;
}

.botao-secundario:hover {
    background-color: #f85050;

    color: white;

    transform: translateY(-3px);
}


/* =========================
   RODAPÉ
========================= */

footer {
    text-align: center;

    padding: 25px;

    color: #777;
}

footer p {
    margin: 0;
}


/* =========================
   MODAL DE DETALHES
========================= */

#modal-detalhes {
    display: none;
}

#modal-detalhes.aberto {
    display: block;
}

.modal-fundo {
    position: fixed;

    inset: 0;

    background-color: rgba(0, 0, 0, 0.8);

    display: flex;

    justify-content: center;
    align-items: center;

    padding: 20px;

    z-index: 9999;
}

.modal-caixa {
    position: relative;

    background-color: #2b2b2b;

    width: 100%;
    max-width: 650px;

    padding: 25px;

    border-radius: 10px;

    border: 1px solid #f85050;

    box-shadow:
        0 15px 40px
        rgba(0, 0, 0, 0.6);

    max-height: 90vh;

    overflow-y: auto;
}

.modal-fechar {
    position: absolute;

    top: 10px;
    right: 15px;

    background: none;

    border: none;

    color: #ccc;

    font-size: 32px;

    cursor: pointer;

    width: auto;

    padding: 0;
}

.modal-fechar:hover {
    color: #f85050;

    background: none;
}

.modal-topo {
    display: flex;

    gap: 25px;

    align-items: flex-start;
}

.modal-topo img {
    width: 180px;

    height: 250px;

    object-fit: cover;

    border-radius: 6px;

    border: 1px solid #444;
}

.modal-topo h2 {
    color: #f85050;

    margin-top: 0;

    margin-right: 30px;
}

.modal-topo p {
    text-align: left;

    font-weight: normal;

    margin: 12px 0;

    color: #ddd;
}

.modal-topo .status {
    margin: 5px 0 10px 0;
}


/* =========================
   INFO DO YOUR GAMER PROFILE
========================= */

.modal-info {
    margin-top: 25px;

    background-color: #1e1e1e;

    padding: 15px;

    border-radius: 6px;

    border-left: 3px solid #f85050;
}

.modal-info p {
    margin: 10px 0;

    color: #ddd;

    text-align: left;

    font-weight: normal;
}

.modal-nao-encontrado {
    margin-top: 25px;

    padding: 15px;

    background-color: #1e1e1e;

    color: #aaa;

    border-radius: 6px;

    text-align: left;

    font-weight: normal;
}


/* =========================
   COMENTÁRIO
========================= */

.modal-comentario {
    margin-top: 25px;

    border-top: 1px solid #444;

    padding-top: 20px;
}

.modal-comentario h3 {
    color: #f85050;

    margin-top: 0;
}

.modal-comentario p {
    color: #ccc;

    line-height: 1.6;

    text-align: left;

    font-weight: normal;
}


/* =========================
   RESPONSIVO
========================= */

@media (max-width: 700px) {

    header {
        flex-direction: column;

        gap: 15px;
    }

    nav {
        flex-wrap: wrap;

        justify-content: center;
    }

    main {
        padding: 20px;
    }

    .controles {
        flex-direction: column;
    }

    .controle {
        flex-direction: column;

        align-items: flex-start;
    }

    .grade-jogos {
        justify-content: center;
    }

    .hero h2 {
        font-size: 32px;
    }

}


@media (max-width: 600px) {

    .modal-topo {
        flex-direction: column;

        align-items: center;
    }

    .modal-topo img {
        width: 160px;

        height: 220px;
    }

    .modal-topo div {
        width: 100%;
    }

}