/**
 * Test Ascolto e Memoria - CSS specifico
 * (estende test-style.css globale)
 */

/* Audio Phase */
.test-audio-phase {
    text-align: center;
    padding: 2rem 1.5rem;
}

.audio-instructions {
    margin-bottom: 2rem;
}

.audio-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary, #1a1a2e);
    margin-bottom: 1rem;
}

.audio-description {
    color: var(--text-secondary, #4a4a68);
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

.audio-player-container {
    margin: 2rem auto;
    max-width: 500px;
}

.audio-player-container audio {
    width: 100%;
    border-radius: 8px;
}

.test-proceed-btn {
    display: inline-block;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.test-proceed-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.6;
}

.test-proceed-btn.active {
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(102, 126, 234, 0.4);
    }

    50% {
        box-shadow: 0 0 0 10px rgba(102, 126, 234, 0);
    }
}

.audio-hint {
    margin-top: 1rem;
    font-size: 0.875rem;
    color: var(--text-muted, #888);
    font-style: italic;
}

/* Result Details Grid */
.result-details {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color, #e0e0e0);
}

.result-details h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-secondary, #4a4a68);
    margin-bottom: 1rem;
    text-align: center;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(40px, 1fr));
    gap: 0.5rem;
    max-width: 500px;
    margin: 0 auto;
}

.detail-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    border-radius: 6px;
    font-size: 0.875rem;
    transition: transform 0.2s ease;
}

.detail-item:hover {
    transform: scale(1.1);
}

.detail-item.correct {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
}

.detail-item.incorrect {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}

.detail-num {
    font-weight: 600;
    font-size: 0.75rem;
}

.detail-icon {
    font-size: 1rem;
    font-weight: bold;
}