/* EAEE Core Engine Styles */
:root {
    --ea-primary: #1a73e8;
    --ea-success: #34a853;
    --ea-danger: #ea4335;
    --ea-text: #3c4043;
    --ea-bg: #f8f9fa;
    --ea-border: #dadce0;
    --ea-radius: 12px;
}

.ea-exercise-container {
    background: #ffffff;
    border: 1px solid var(--ea-border);
    border-radius: var(--ea-radius);
    padding: 24px;
    margin: 20px 0;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: var(--ea-text);
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.ea-exercise-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.ea-badge {
    background: var(--ea-bg);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid var(--ea-border);
}

.ea-content-area {
    min-height: 100px;
    padding: 20px;
    background: var(--ea-bg);
    border-radius: var(--ea-radius);
    margin-bottom: 20px;
}

.ea-exercise-footer {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.ea-check-btn {
    background: var(--ea-primary);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.ea-check-btn:hover {
    background: #1557b0;
}

.ea-feedback {
    min-height: 24px;
    font-weight: 500;
    text-align: center;
}

/* Audio Button Styling */
.ea-audio-btn {
    background: transparent;
    border: 1px solid var(--ea-primary);
    color: var(--ea-primary);
    padding: 6px 15px;
    border-radius: 6px;
    cursor: pointer;
}

.ea-audio-btn:hover {
    background: var(--ea-primary);
    color: white;
}

/* Unscramble Specific Styles */
.ea-word-bank, .ea-drop-zone {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 15px;
    min-height: 50px;
    border: 2px dashed var(--ea-border);
    border-radius: 8px;
    margin-bottom: 15px;
    background: white;
}

.ea-drop-zone {
    border-style: solid;
    background: #fff;
    min-height: 80px;
    align-items: center;
}

.ea-word-node {
    background: var(--ea-primary);
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: grab;
    user-select: none;
    font-weight: 500;
}

.ea-word-node:active {
    cursor: grabbing;
}

.ea-placeholder {
    color: #999;
    font-style: italic;
    width: 100%;
    text-align: center;
}

.dragging {
    opacity: 0.5;
}

.drag-over {
    background: #eef6ff;
    border-color: var(--ea-primary);
}

/* Hide audio until exercise is won */
.ea-audio-section {
    display: none;
    margin-bottom: 20px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #eee;
}

/* Class to show it via JS */
.ea-audio-section.is-visible {
    display: block;
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}