/* === Resetare și Font === */
@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@400;600;700&display=swap');

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Fredoka', sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    /* Fundal animat albastru-verde estompat */
    background: linear-gradient(-45deg, #a1c4fd, #c2e9fb, #d1f2eb, #e8f8f5);
    background-size: 400% 400%;
    animation: gradientAnim 15s ease infinite;
}

@keyframes gradientAnim {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* === Container Principal === */
.kid-container {
    background: white;
    padding: 30px;
    border-radius: 30px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1), inset 0 0 0 10px #f8fafc;
    max-width: 600px;
    width: 100%;
    text-align: center;
    margin-top: 20px;
}

.bounce-in {
    animation: bounceIn 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes bounceIn {
    0% { transform: scale(0.8); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

/* === Header === */
header {
    margin-bottom: 20px;
}

h1 { color: #2d3436; font-size: 2rem; margin-bottom: 5px; }
h2 { color: #636e72; font-size: 1.1rem; font-weight: 400; }

/* === Navigare (Butoane Clase) === */
nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 20px 0;
}

nav ul li a {
    display: inline-block;
    padding: 12px 20px;
    background: #74b9ff;
    color: white;
    text-decoration: none;
    border-radius: 15px;
    font-weight: 600;
    transition: all 0.2s;
    box-shadow: 0 4px 0 #0984e3;
}

nav ul li a:hover { transform: translateY(-2px); filter: brightness(1.1); }
nav ul li a:active { transform: translateY(2px); box-shadow: 0 1px 0 #0984e3; }

/* === Zona de Exerciții === */
#exercise-prompt {
    font-size: 1.4rem;
    color: #2d3436;
    margin: 20px 0;
    font-weight: 600;
}

#answer-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 25px;
}

/* Stil radio butoane ca și carduri */
.option-label {
    background: #f1f2f6;
    padding: 15px;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.2s;
    border: 3px solid transparent;
    font-weight: 600;
    display: block;
    text-align: left;
}

.option-label:hover { background: #e1e2e6; }
input[type="radio"] { display: none; }
input[type="radio"]:checked + .option-label {
    border-color: #74b9ff;
    background: #e3f2fd;
    color: #0984e3;
}

/* === Butoane Acțiune === */
#check-answer {
    width: 100%;
    padding: 18px;
    font-size: 1.2rem;
    font-weight: 700;
    border: none;
    border-radius: 15px;
    background: #10b981;
    color: white;
    box-shadow: 0 6px 0 #059669;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s;
}

#check-answer:active { transform: translateY(4px); box-shadow: 0 2px 0 #059669; }

/* === Feedback === */
#feedback {
    margin-top: 20px;
    font-size: 1.2rem;
    font-weight: 700;
    min-height: 1.5em;
}

.correct-text { color: #10b981; animation: bounce 0.5s; }
.incorrect-text { color: #ff7675; }

@keyframes bounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

footer { margin-top: 30px; font-size: 0.9rem; color: #636e72; }
footer a { color: #0984e3; text-decoration: none; font-weight: bold; }

.hidden { display: none; }