/* ============================================
   Test Memoria Lista di Parole - Stili specifici
   ============================================ */

/* ---- Memorization Phase ---- */
#test-memoria-lista-di-parole-wrapper .test-memorize-phase {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    box-shadow: var(--shadow-lg);
    text-align: center;
}

#test-memoria-lista-di-parole-wrapper .memorize-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text);
    margin: 0 0 8px 0;
}

#test-memoria-lista-di-parole-wrapper .memorize-instructions {
    color: var(--color-text-muted);
    margin: 0 0 24px 0;
    font-size: 0.95rem;
}

/* ---- Words Grid (memorization) ---- */
#test-memoria-lista-di-parole-wrapper .words-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    margin: 0 auto 32px;
    max-width: 600px;
}

#test-memoria-lista-di-parole-wrapper .word-item {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    padding: 14px 8px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition);
    user-select: none;
}

#test-memoria-lista-di-parole-wrapper .word-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Skip button */
#test-memoria-lista-di-parole-wrapper .test-skip-btn {
    background: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
    padding: 12px 32px;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    margin-top: 8px;
}

#test-memoria-lista-di-parole-wrapper .test-skip-btn:hover {
    background: var(--color-primary);
    color: #fff;
}

/* ---- Input Instructions ---- */
#test-memoria-lista-di-parole-wrapper .input-instructions {
    background: var(--color-surface);
    border-radius: var(--radius-md);
    padding: 20px 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
    text-align: center;
}

#test-memoria-lista-di-parole-wrapper .input-instructions p {
    color: var(--color-text);
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
}

/* ---- Words Input Grid ---- */
#test-memoria-lista-di-parole-wrapper .words-input-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    margin-bottom: 32px;
}

#test-memoria-lista-di-parole-wrapper .word-input-cell {
    display: flex;
    justify-content: center;
}

#test-memoria-lista-di-parole-wrapper .word-input-cell input[type="text"] {
    width: 100%;
    padding: 12px 8px;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    color: var(--color-primary-dark);
    background: var(--color-surface);
    transition: border-color var(--transition), box-shadow var(--transition);
    outline: none;
}

#test-memoria-lista-di-parole-wrapper .word-input-cell input[type="text"]:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

#test-memoria-lista-di-parole-wrapper .word-input-cell input[type="text"]::placeholder {
    color: var(--color-border);
    font-weight: 400;
}

/* ---- Responsive ---- */
@media (max-width: 600px) {
    #test-memoria-lista-di-parole-wrapper .words-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    #test-memoria-lista-di-parole-wrapper .word-item {
        font-size: 0.85rem;
        padding: 10px 6px;
    }

    #test-memoria-lista-di-parole-wrapper .words-input-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    #test-memoria-lista-di-parole-wrapper .word-input-cell input[type="text"] {
        font-size: 0.9rem;
        padding: 10px 6px;
    }
}

@media (max-width: 400px) {
    #test-memoria-lista-di-parole-wrapper .words-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    #test-memoria-lista-di-parole-wrapper .words-input-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
