/* frontend/css/style.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, #1a1a2e, #16213e, #0f3460);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 900px;
}

/* ===== CARD DE LOGIN/CADASTRO ===== */
.card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    max-width: 400px;
    margin: 0 auto;
}

.card h1 {
    text-align: center;
    font-size: 28px;
    color: #1a1a2e;
    margin-bottom: 5px;
}

.card h2 {
    text-align: center;
    color: #555;
    font-weight: normal;
    margin-bottom: 25px;
    font-size: 18px;
}

.card input {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 15px;
    border: 2px solid #ddd;
    border-radius: 10px;
    font-size: 16px;
    transition: 0.3s;
}

.card input:focus {
    border-color: #0f3460;
    outline: none;
    box-shadow: 0 0 0 3px rgba(15, 52, 96, 0.2);
}

.card button {
    width: 100%;
    padding: 12px;
    background: #0f3460;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.card button:hover {
    background: #1a1a2e;
    transform: scale(1.02);
}

.card .link {
    text-align: center;
    margin-top: 15px;
    color: #0f3460;
    cursor: pointer;
    font-weight: 500;
}

.card .link:hover {
    text-decoration: underline;
}

/* ===== TELAS ===== */
.tela {
    display: none;
}

.tela.ativa {
    display: block;
}

/* ===== HEADER ===== */
.header {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px 15px 0 0;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.header h1 {
    font-size: 24px;
    color: #1a1a2e;
}

.usuario-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.usuario-info span {
    font-weight: 600;
    color: #0f3460;
}

.usuario-info button {
    padding: 8px 20px;
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
}

.usuario-info button:hover {
    background: #c0392b;
}

/* ===== ABAS ===== */
.abas {
    background: rgba(255, 255, 255, 0.9);
    padding: 10px 30px;
    display: flex;
    gap: 10px;
    border-bottom: 2px solid #eee;
}

.abas button {
    padding: 10px 25px;
    border: none;
    background: transparent;
    font-size: 16px;
    font-weight: 600;
    color: #555;
    cursor: pointer;
    border-radius: 8px 8px 0 0;
    transition: 0.3s;
}

.abas button:hover {
    background: #eee;
}

.abas button.aba-ativa {
    background: #0f3460;
    color: white;
}

/* ===== CONTEÚDO ===== */
.conteudo-aba {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 0 0 15px 15px;
    padding: 25px 30px;
    min-height: 400px;
}

/* ===== JOGOS ===== */
.jogo-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
    flex-wrap: wrap;
    gap: 10px;
}

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

.jogo-info {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.jogo-times {
    font-weight: 600;
    font-size: 16px;
}

.jogo-fase {
    background: #f0f0f0;
    padding: 2px 12px;
    border-radius: 12px;
    font-size: 12px;
    color: #555;
}

.jogo-placar {
    display: flex;
    align-items: center;
    gap: 10px;
}

.jogo-placar input {
    width: 45px;
    padding: 6px;
    text-align: center;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
}

.jogo-placar input:focus {
    border-color: #0f3460;
    outline: none;
}

.jogo-placar span {
    font-weight: bold;
    color: #555;
}

.btn-palpite {
    padding: 6px 18px;
    background: #27ae60;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.3s;
}

.btn-palpite:hover {
    background: #219a52;
}

.btn-palpite:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* ===== RANKING ===== */
.ranking-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
}

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

.ranking-posicao {
    font-weight: bold;
    font-size: 18px;
    color: #0f3460;
    width: 40px;
}

.ranking-nome {
    flex: 1;
    font-weight: 500;
}

.ranking-pontos {
    font-weight: bold;
    color: #27ae60;
    font-size: 18px;
}

.ranking-palpites {
    color: #888;
    font-size: 14px;
}

/* ===== MENSAGEM ===== */
.mensagem {
    position: fixed;
    bottom: 30px;
    right: 30px;
    padding: 15px 25px;
    border-radius: 12px;
    color: white;
    font-weight: 500;
    opacity: 0;
    transform: translateY(20px);
    transition: 0.4s;
    pointer-events: none;
    z-index: 999;
}

.mensagem.mostrar {
    opacity: 1;
    transform: translateY(0);
}

.mensagem.sucesso {
    background: #27ae60;
}

.mensagem.erro {
    background: #e74c3c;
}

/* ===== RESPONSIVO ===== */
@media (max-width: 600px) {
    .card {
        padding: 25px;
        margin: 10px;
    }

    .header {
        flex-direction: column;
        gap: 10px;
        text-align: center;
        padding: 15px;
    }

    .abas {
        flex-direction: column;
        align-items: stretch;
        padding: 5px 15px;
    }

    .abas button {
        border-radius: 8px;
        padding: 12px;
    }

    .conteudo-aba {
        padding: 15px;
    }

    .jogo-item {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .jogo-info {
        flex-direction: column;
        align-items: flex-start;
    }

    .jogo-placar {
        justify-content: flex-start;
    }
}

/* ABA ADMIN (destacada) */
#abaAdmin {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white !important;
    border-radius: 8px !important;
    padding: 10px 25px !important;
    font-weight: bold !important;
    transition: 0.3s;
}

#abaAdmin:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

#abaAdmin.aba-ativa {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%) !important;
}
