/* Estilos para a nova página inicial - Inspirado no Lichess */

body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f9f9f9;
    color: #333;
    line-height: 1.6;
}

/* Barra do topo */
header {
    background-color: #fdfdfd;
    border-bottom: 1px solid #ddd;
    padding: 10px 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 30px;
    align-items: center;
}

nav ul li {
    font-weight: 600;
    font-size: 0.95rem;
}

nav a {
    text-decoration: none;
    color: #333;
    transition: color 0.2s ease;
    padding: 8px 12px;
    border-radius: 4px;
}

nav a:hover {
    color: #d35400;
    background-color: rgba(211, 84, 0, 0.1);
}

.logo {
    font-size: 1.4rem;
    font-weight: 700;
    color: #2c3e50 !important;
}

.user-info {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-rating {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 600;
}

.btn-donation {
    background: linear-gradient(135deg, #e74c3c, #c0392b) !important;
    color: white !important;
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-donation:hover {
    background: linear-gradient(135deg, #c0392b, #a93226) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(231, 76, 60, 0.3);
}

/* Conteúdo principal */
main {
    padding: 20px;
    display: grid;
    grid-template-columns: 1fr 3fr 1fr;
    gap: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.coluna-esquerda, .coluna-direita {
    background-color: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    height: fit-content;
}

.conteudo-central {
    text-align: center;
    background-color: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.titulo-principal {
    font-size: 2.2rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 10px;
}

.subtitulo {
    font-size: 1.1rem;
    color: #7f8c8d;
    margin-bottom: 30px;
}

/* Opções de pareamento rápido */
.opcoes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 30px;
}

.opcao {
    background: #fff;
    padding: 20px 15px;
    border-radius: 8px;
    border: 2px solid #ecf0f1;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.opcao:hover {
    background: #f8f9fa;
    border-color: #3498db;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.2);
}

.opcao-tempo {
    font-size: 1.1rem;
    color: #2c3e50;
    margin-bottom: 5px;
}

.opcao-tipo {
    font-size: 0.9rem;
    color: #7f8c8d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Botões principais */
.botoes {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
}

.botao-principal {
    display: block;
    width: 100%;
    padding: 15px 20px;
    font-weight: 600;
    font-size: 1rem;
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    text-align: center;
}

.botao-principal:hover {
    background: linear-gradient(135deg, #229954, #27ae60);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.3);
    color: white;
    text-decoration: none;
}

.botao-secundario {
    display: block;
    width: 100%;
    padding: 15px 20px;
    font-weight: 600;
    font-size: 1rem;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    text-align: center;
}

.botao-secundario:hover {
    background: linear-gradient(135deg, #2980b9, #3498db);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
    color: white;
    text-decoration: none;
}

.botao-terciario {
    display: block;
    width: 100%;
    padding: 15px 20px;
    font-weight: 600;
    font-size: 1rem;
    background: linear-gradient(135deg, #8e44ad, #9b59b6);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    text-align: center;
}

.botao-terciario:hover {
    background: linear-gradient(135deg, #7d3c98, #8e44ad);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(142, 68, 173, 0.3);
    color: white;
    text-decoration: none;
}

/* Seções das colunas laterais */
.secao-titulo {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #ecf0f1;
}

.lista-item {
    padding: 12px 0;
    border-bottom: 1px solid #ecf0f1;
    color: #34495e;
    font-size: 0.95rem;
}

.lista-item:last-child {
    border-bottom: none;
}

.lista-item:hover {
    color: #2c3e50;
    cursor: pointer;
}

/* Jogadores online */
.jogador-online {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #ecf0f1;
}

.jogador-online:last-child {
    border-bottom: none;
}

.jogador-info {
    display: flex;
    flex-direction: column;
}

.jogador-nome {
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.95rem;
}

.jogador-rating {
    font-size: 0.85rem;
    color: #7f8c8d;
}

.botao-desafiar {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: background 0.2s ease;
}

.botao-desafiar:hover {
    background: #c0392b;
}

/* Salas de jogo */
.sala-item {
    background: #f8f9fa;
    border: 1px solid #ecf0f1;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
    transition: all 0.2s ease;
}

.sala-item:hover {
    border-color: #3498db;
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.1);
}

.sala-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.sala-nome {
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.95rem;
}

.sala-status {
    background: #f39c12;
    color: white;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

.sala-status.aguardando {
    background: #f39c12;
}

.sala-status.jogando {
    background: #e74c3c;
}

.sala-info {
    color: #7f8c8d;
    font-size: 0.85rem;
    margin-bottom: 8px;
}

.botao-entrar {
    background: #27ae60;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.2s ease;
}

.botao-entrar:hover {
    background: #229954;
}

/* Responsividade */
@media (max-width: 1200px) {
    main {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .coluna-esquerda, .coluna-direita {
        display: none;
    }
}

@media (max-width: 768px) {
    .opcoes {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    nav ul {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .titulo-principal {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .opcoes {
        grid-template-columns: 1fr;
    }
    
    main {
        padding: 10px;
    }
    
    .conteudo-central {
        padding: 20px;
    }
}