/* Stiluri generale */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Comic Neue', cursive, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 30px;
    padding: 30px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

/* Stiluri pentru header și poveste */
.poveste-header {
    text-align: center;
    margin-bottom: 30px;
}

.poveste-header h1 {
    font-size: 2.5em;
    color: #ff6b6b;
    text-shadow: 3px 3px 0 #ffeaa7;
    margin-bottom: 15px;
}

.poveste-buburuza {
    background-color: #fdcb6e;
    padding: 20px;
    border-radius: 50px 50px 50px 0;
    display: inline-block;
    max-width: 80%;
    box-shadow: 5px 5px 0 #e17055;
}

.poveste-buburuza p {
    font-size: 1.3em;
    color: #2d3436;
    line-height: 1.5;
}

/* Containerul principal de joc */
.joc-container {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

/* Coloana personajului */
.personaj-coloana {
    flex: 1;
    min-width: 250px;
    text-align: center;
}

.personaj-container {
    background-color: #a8e6cf;
    border-radius: 30px;
    padding: 20px;
    box-shadow: 0 10px 0 #3d9b7a;
    margin-bottom: 15px;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.personaj-container img {
    max-width: 100%;
    max-height: 250px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.personaj-container img:hover {
    transform: scale(1.05);
}

.sugestie {
    font-size: 1.2em;
    background-color: #74b9ff;
    color: white;
    padding: 10px;
    border-radius: 30px;
    box-shadow: 0 5px 0 #0984e3;
}

/* Coloana tablei de șah */
.tabla-coloana {
    flex: 2;
    min-width: 400px;
}

.tabla-sah {
    width: 100%;
    max-width: 500px;
    margin: 0 auto 20px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    border-radius: 10px;
    overflow: hidden;
}

/* Personalizarea pătrățelor tablei de șah */
.white-1e1d7 {
    background-color: #f0d9b5 !important;
}
.black-3c85d {
    background-color: #b58863 !important;
}

/* Panou de control */
.panou-control {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
}

.buton-control {
    font-family: 'Comic Neue', cursive;
    font-size: 1.2em;
    padding: 12px 25px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
    box-shadow: 0 5px 0 #aaa;
}

.buton-control:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 0 #aaa;
}

.buton-control:active {
    transform: translateY(5px);
    box-shadow: 0 2px 0 #aaa;
}

#resetBtn {
    background-color: #ff7675;
    color: white;
}
#undoBtn {
    background-color: #fdcb6e;
    color: #2d3436;
}
#redoBtn {
    background-color: #00b894;
    color: white;
}

/* Container mesaje */
.mesaje-container {
    background-color: #dfe6e9;
    border-radius: 20px;
    padding: 20px;
    margin: 20px 0;
    font-size: 1.3em;
    text-align: center;
    border-left: 10px solid #ff6b6b;
    min-height: 80px;
}

/* Linkuri către lecțiile următoare */
.lectii-urmatoare {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 3px dashed #b2bec3;
}

.lectii-urmatoare p {
    width: 100%;
    text-align: center;
    font-size: 1.2em;
    color: #636e72;
    margin-bottom: 10px;
}

.buton-lectie {
    font-family: 'Comic Neue', cursive;
    background-color: #a29bfe;
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 1.1em;
    transition: all 0.3s ease;
    box-shadow: 0 4px 0 #6c5ce7;
}

.buton-lectie:hover {
    background-color: #8c7ae6;
    transform: translateY(-2px);
    box-shadow: 0 6px 0 #6c5ce7;
}

/* Responsive design */
@media (max-width: 768px) {
    .joc-container {
        flex-direction: column;
    }
    
    .personaj-coloana, .tabla-coloana {
        min-width: 100%;
    }
    
    .poveste-buburuza {
        max-width: 100%;
    }
    
    .poveste-header h1 {
        font-size: 1.8em;
    }
    
    .panou-control {
        flex-wrap: wrap;
    }
    
    .buton-control {
        width: 100%;
    }
}