/* Reset */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f8f8;
    color: #333;
    transition: background-color 0.3s, color 0.3s;
}
body.dark-mode {
    background-color: #222;
    color: #ddd;
}
header {
    background: linear-gradient(135deg, #757575, #9E9E9E);
    padding: 20px;
    text-align: center;
    position: relative;
}
header h1 {
    font-size: 2rem;
    color: #fff;
    margin-bottom: 10px;
}
header .sub-title {
    font-size: 1rem;
    color: #e0e0e0;
}

/* Botão Voltar (no cabeçalho) */
.back-button {
    position: absolute;
    top: 20px;
    left: 20px;
}
.back-button a {
    text-decoration: none;
    background-color: #9E9E9E;
    color: #fff;
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: bold;
    transition: background 0.3s;
}
.back-button a:hover {
    background-color: #757575;
}

/* Barra de Pesquisa */
.search-container {
    margin: 20px auto;
    max-width: 600px;
    text-align: center;
}
.search-container form {
    display: flex;
    justify-content: center;
    gap: 10px;
}
.search-container input[type="text"] {
    width: 70%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
}
.search-container input[type="submit"] {
    padding: 10px 20px;
    border: none;
    background: #757575;
    color: #fff;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
}
.search-container input[type="submit"]:hover {
    background: #616161;
}

/* Botão Dark Mode */
.dark-mode-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #fff;
    border: none;
    padding: 10px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    transition: background 0.3s;
}
body.dark-mode .dark-mode-toggle {
    background: #444;
}

/* Grid de Jogos */
.games-container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}
.game-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s;
}
body.dark-mode .game-card {
    background: #333;
    box-shadow: 0 2px 6px rgba(0,0,0,0.5);
}
.game-card:hover {
    transform: translateY(-5px);
}
.game-card header {
    background: #f1f1f1;
    padding: 10px;
    text-align: center;
    font-weight: bold;
    font-size: 1.1rem;
    display: flex;
    justify-content: space-around;
    align-items: center;
}
body.dark-mode .game-card header {
    background: #444;
}
.game-card header .team {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.game-card header .team img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 5px;
}
.game-card .info {
    padding: 15px;
    text-align: center;
}
.game-card .info .campeonato {
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 5px;
}
body.dark-mode .game-card .info .campeonato {
    color: #bbb;
}
.game-card .info .horario {
    font-size: 1.2rem;
    font-weight: bold;
    color: #333;
}
body.dark-mode .game-card .info .horario {
    color: #eee;
}

/* ESTILO DO FOOTER DO CARD (TEXTO "ASSISTIR") */
.game-card footer {
    background: #757575;
    color: white;
    font-weight: bold;
    text-align: center;
    padding: 10px;
    text-transform: uppercase;
}
body.dark-mode .game-card footer {
    background: #555;
}

/* Estilo do link do card de jogo */
.game-card-link {
    display: block;
    color: inherit !important;
    text-decoration: none !important;
    border-radius: 8px;
    overflow: hidden;
    transition: background-color 0.3s;
}
.game-card-link:hover {
    cursor: pointer;
    background-color: #f0f0f0;
}
body.dark-mode .game-card-link:hover {
    background-color: #444;
}

/* Botão Carregar Mais */
.load-more {
    text-align: center;
    margin: 30px 0;
}
.load-more a {
    display: inline-block;
    padding: 10px 20px;
    background: #757575;
    color: #fff;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s;
}
.load-more a:hover {
    background: #616161;
}

/* Rodapé */
footer.site-footer {
    background: #222;
    color: #ccc;
    text-align: center;
    padding: 15px;
    margin-top: 40px;
}
footer.site-footer a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
}

/* Botão Voltar ao Topo */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #757575;
    color: #fff;
    padding: 10px 15px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    display: none;
}