/* Estilos generales */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Contenedor principal */
.container {
    max-width: 800px;
}

/* Barra de progreso */
#progress-header {
    font-size: 1.2rem;
    padding: 10px;
    background-color: #e9f7ef;
    border-radius: 20px;
    display: inline-block;
    margin: 0 auto;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.progress-count {
    font-weight: bold;
    color: #28a745;
}

/* Tarjeta de ejercicio */
.exercise-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    overflow: hidden;
    margin-bottom: 20px;
}

/* Imagen */
.image-container {
    background: #f5f5f5;
    padding: 10px;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.exercise-image {
    max-width: 100%;
    height: auto;
    max-height: 250px;
    object-fit: cover;
    border-radius: 8px 8px 0 0;
    display: block;
    margin: 0 auto;
}

/* Slots de palabras */
.word-slots {
    margin: 20px 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.word-slot {
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 1rem;
    transition: all 0.3s;
}

.word-slot.empty {
    background-color: #f0f0f0;
    border: 1px dashed #ccc;
    color: #888;
}

.word-slot.filled {
    background-color: #e3f2fd;
    border: 1px solid #90caf9;
    color: #1976d2;
    cursor: pointer;
}

/* Botones de palabras */
.word-btn {
    position: relative;
    margin: 5px;
    padding: 8px 12px;
    border: none;
    border-radius: 4px;
    background-color: #4285f4;
    color: white;
    cursor: pointer;
    transition: all 0.3s;
}

.word-btn:hover:not(.used) {
    background-color: #3367d6;
    transform: translateY(-2px);
}

.word-btn.used {
    opacity: 0.6;
    cursor: default;
}

/* Traducciones flotantes */
.word-translation {
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    color: #333;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.8em;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 10;
}

.word-btn.active-translation .word-translation {
    opacity: 1;
}

.word-btn.active-translation {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Feedback */
.feedback {
    margin: 15px 0;
    font-size: 1.2rem;
    font-weight: bold;
    text-align: center;
    padding: 10px;
    border-radius: 5px;
}

.feedback-correct {
    background: #e6f7ee;
    color: #28a745;
}

.feedback-incorrect {
    background: #fde8e8;
    color: #dc3545;
}

.feedback-completed {
    color: #17a2b8;
    font-weight: bold;
    font-size: 1.2em;
    background-color: #e7f8fb;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
    margin: 15px 0;
}

/* Botones de acción */
.action-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 25px 0 15px;
}

.action-btn {
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid;
    cursor: pointer;
}

.hint-btn {
    background-color: #17a2b8;
    color: white;
    border-color: #17a2b8;
}

.clear-btn {
    background-color: #f8f9fa;
    color: #6c757d;
    border-color: #6c757d;
}

/* Navegación */
.navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: #f8f9fa;
    border-top: 1px solid #eee;
}

.nav-btn {
    padding: 8px 20px;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
}

.nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Responsive */
@media (max-width: 768px) {
    .exercise-image {
        max-height: 200px;
    }
    
    .word-btn {
        font-size: 0.9rem;
        padding: 6px 10px;
    }
    
    .word-slot {
        font-size: 0.9rem;
        padding: 6px 10px;
    }
}