/* equilibrium/public/css/style.css */

/* Reset básico */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: #1a1a1a; /* Fundo escuro para destacar as cartas */
    color: white;
    font-family: sans-serif;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* O "Tapete" do jogo */
.mesa-de-jogo {
    width: 100%;
    max-width: 1000px;
    height: 90vh;
    display: grid;
    grid-template-rows: 150px 1fr 200px; /* Topo, Centro, Base */
    gap: 20px;
    border: 2px solid #333;
    background-color: #2a3b4c; /* Azul escuro do seu desenho */
    padding: 20px;
    border-radius: 10px;
}

/* --- ZONAS DA MESA --- */
.zona-sistema {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.zona-batalha {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 50px;
    position: relative;
}

.zona-mao {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    border-top: 2px dashed #555;
    padding-top: 20px;
}

/* --- ESTILOS GERAIS DE CARTAS --- */
.carta {
    width: 100px;
    height: 140px;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.5);
    transition: transform 0.2s, box-shadow 0.2s;
    text-align: center;
}

.carta:hover {
    transform: translateY(-5px);
    box-shadow: 2px 5px 10px rgba(0,0,0,0.8);
}

/* Placeholder Cores (Você trocará por background-image depois) */
.tita { background-color: #ff9800; color: black; width: 140px; height: 200px; }
.potencializador { background-color: #e67e22; color: white; }
.carta-verso { background-color: #d35400; width: 100px; height: 140px; border-radius: 8px; }
.carta-placeholder { border: 2px dashed #7f8c8d; width: 100px; height: 140px; }

/* --- A CADEIA E EFEITOS DE SOBREPOSIÇÃO --- */
.cadeia-potencializadores {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: -30px; /* Faz a carta subir para encostar no Titã */
}

/* Efeito projetado para a carta que está ganhando na pilha */
.carta.vencendo {
    transform: scale(1.05) translateY(-10px);
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.8);
    z-index: 10;
    border: 2px solid gold;
}

/* Efeito do Monstro/Titã perdendo */
.tita {
    transition: opacity 0.5s ease, filter 0.5s ease;
}

.tita.perdendo {
    opacity: 0.4;
    filter: grayscale(80%);
    border: 2px dashed red;
}

/* --- DIVISÕES DA MÃO --- */
.mao-titas, .mao-potencializadores {
    display: flex;
    gap: 15px;
}

.btn-renovar {
    background-color: #c0392b;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
}

.btn-renovar:hover {
    background-color: #e74c3c;
}

#cartas-espalhadas {
    position: relative;
    width: 300px;
    height: 150px;
}

.carta-espalhada {
    position: absolute;
    width: 40px;
    height: 60px;
    background: #d35400;
    border: 1px solid #fff;
    cursor: pointer;
    border-radius: 4px;
}